From b961970fc3d0d9a9ad03d962b389a697f62071f2 Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Mon, 25 Aug 2014 22:28:36 +0200 Subject: [PATCH] forgot the magic --- .../model/AbstractPetStoreDBCatalog.java | 5 +++++ .../model/AbstractPetStoreDBColumn.java | 11 +++++++++++ .../petstore/model/AbstractPetStoreDBTable.java | 15 +++++++++++++++ .../model/AbstractPetStoreVascBackend.java | 17 +++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBCatalog.java create mode 100644 vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBColumn.java create mode 100644 vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBTable.java create mode 100644 vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreVascBackend.java diff --git a/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBCatalog.java b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBCatalog.java new file mode 100644 index 0000000..c0a1b6d --- /dev/null +++ b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBCatalog.java @@ -0,0 +1,5 @@ +package net.forwardfire.vasc.demo.tech.domain.petstore.model; + +public final class AbstractPetStoreDBCatalog { + public static final String SCHEMA = "petstore"; +} diff --git a/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBColumn.java b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBColumn.java new file mode 100644 index 0000000..b7136a2 --- /dev/null +++ b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBColumn.java @@ -0,0 +1,11 @@ +package net.forwardfire.vasc.demo.tech.domain.petstore.model; + +public final class AbstractPetStoreDBColumn { + public static final String ID = "id"; + public static final String SIGNUP_IP = "signup_ip"; + public static final String SIGNUP_AGENT = "signup_agent"; + public static final String LOCALE = "locale"; + public static final String USER_ACCOUNT_ID = "user_account_id"; + public static final String USER_CATEGORY_ID = "user_category_id"; + // etc +} diff --git a/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBTable.java b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBTable.java new file mode 100644 index 0000000..64f376f --- /dev/null +++ b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreDBTable.java @@ -0,0 +1,15 @@ +package net.forwardfire.vasc.demo.tech.domain.petstore.model; + +public final class AbstractPetStoreDBTable { + public static final String CATEGORY = "category"; + public static final String CATEGORY_PRODUCT = "category_product"; + public static final String ITEM = "item"; + public static final String ITEM_INVENTORY = "item_inventory"; + public static final String ITEM_SUPPLIER = "item_supplier"; + public static final String ORDER = "order"; + public static final String ORDER_LINE = "order_line"; + public static final String ORDER_STATUS = "order_status"; + public static final String USER_ACCOUNT = "user_account"; + public static final String USER_CREDENTIAL = "user_credential"; + public static final String USER_PROFILE = "user_profile"; +} diff --git a/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreVascBackend.java b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreVascBackend.java new file mode 100644 index 0000000..55ba65f --- /dev/null +++ b/vasc-demo/vasc-demo-tech-domain/src/main/java/net/forwardfire/vasc/demo/tech/domain/petstore/model/AbstractPetStoreVascBackend.java @@ -0,0 +1,17 @@ +package net.forwardfire.vasc.demo.tech.domain.petstore.model; + +import net.forwardfire.vasc.backend.VascBackend; + +public final class AbstractPetStoreVascBackend { + public interface CategoryBackend extends VascBackend {} + public interface CategoryProductBackend extends VascBackend {} + public interface ItemBackend extends VascBackend {} + public interface ItemInventoryBackend extends VascBackend {} + public interface ItemSupplierBackend extends VascBackend {} + public interface OrderBackend extends VascBackend {} + public interface OrderLineBackend extends VascBackend {} + public interface OrderStatusBackend extends VascBackend {} + public interface UserAccountBackend extends VascBackend {} + public interface UserCredentialBackend extends VascBackend {} + public interface UserProfileBackend extends VascBackend {} +}