Révision | 152 (tree) |
---|---|
l'heure | 2010-10-19 17:46:03 |
Auteur | (del#11147) |
不要なものを排除し、exampleを再作成
@@ -1,27 +0,0 @@ | ||
1 | -/* LIBRAフレームワークプロジェクト | |
2 | - * 株式会社トータルソフト | |
3 | - * (C)Totalsoft co.,Ltd.All Rights Reserved. | |
4 | - * | |
5 | - * 作成日:2010/10/19 | |
6 | - * 作成者:Masayasu Koizumi | |
7 | - * | |
8 | - */ | |
9 | -package jp.co.totalsoft.libra.persistence; | |
10 | - | |
11 | -import org.apache.cayenne.CayenneDataObject; | |
12 | - | |
13 | -/** | |
14 | - * <B>概略: </B>TODO クラス論理名 | |
15 | - * <PRE> | |
16 | - * TODO クラスの概要と責務 | |
17 | - * </PRE> | |
18 | - * <B>詳細説明: </B> | |
19 | - * <PRE> | |
20 | - * </PRE> | |
21 | - * @author Masayasu Koizumi | |
22 | - * @since TODO 作成時のバージョン | |
23 | - * @since TODO 現在のバージョン | |
24 | - */ | |
25 | -public abstract class CayenneEntityObject extends CayenneDataObject implements Entity { | |
26 | - | |
27 | -} |
@@ -0,0 +1,27 @@ | ||
1 | +/* LIBRAフレームワークプロジェクト | |
2 | + * 株式会社トータルソフト | |
3 | + * (C)Totalsoft co.,Ltd.All Rights Reserved. | |
4 | + * | |
5 | + * 作成日:2010/10/19 | |
6 | + * 作成者:Masayasu Koizumi | |
7 | + * | |
8 | + */ | |
9 | +package jp.co.totalsoft.libra.persistence; | |
10 | + | |
11 | +import org.apache.cayenne.CayenneDataObject; | |
12 | + | |
13 | +/** | |
14 | + * <B>概略: </B>TODO クラス論理名 | |
15 | + * <PRE> | |
16 | + * TODO クラスの概要と責務 | |
17 | + * </PRE> | |
18 | + * <B>詳細説明: </B> | |
19 | + * <PRE> | |
20 | + * </PRE> | |
21 | + * @author Masayasu Koizumi | |
22 | + * @since TODO 作成時のバージョン | |
23 | + * @since TODO 現在のバージョン | |
24 | + */ | |
25 | +public abstract class CayenneEntity extends CayenneDataObject implements Entity { | |
26 | + | |
27 | +} |
@@ -0,0 +1,25 @@ | ||
1 | +/* LIBRAフレームワークプロジェクト | |
2 | + * 株式会社トータルソフト | |
3 | + * (C)Totalsoft co.,Ltd.All Rights Reserved. | |
4 | + * | |
5 | + * 作成日:2010/10/19 | |
6 | + * 作成者:Masayasu Koizumi | |
7 | + * | |
8 | + */ | |
9 | +package jp.co.totalsoft.libra.persistence; | |
10 | + | |
11 | +/** | |
12 | + * <B>概略: </B>TODO クラス論理名 | |
13 | + * <PRE> | |
14 | + * TODO クラスの概要と責務 | |
15 | + * </PRE> | |
16 | + * <B>詳細説明: </B> | |
17 | + * <PRE> | |
18 | + * </PRE> | |
19 | + * @author Masayasu Koizumi | |
20 | + * @since TODO 作成時のバージョン | |
21 | + * @since TODO 現在のバージョン | |
22 | + */ | |
23 | +public interface EntityContext { | |
24 | + | |
25 | +} |
@@ -0,0 +1,25 @@ | ||
1 | +/* LIBRAフレームワークプロジェクト | |
2 | + * 株式会社トータルソフト | |
3 | + * (C)Totalsoft co.,Ltd.All Rights Reserved. | |
4 | + * | |
5 | + * 作成日:2010/10/19 | |
6 | + * 作成者:Masayasu Koizumi | |
7 | + * | |
8 | + */ | |
9 | +package jp.co.totalsoft.libra.persistence; | |
10 | + | |
11 | +/** | |
12 | + * <B>概略: </B>TODO クラス論理名 | |
13 | + * <PRE> | |
14 | + * TODO クラスの概要と責務 | |
15 | + * </PRE> | |
16 | + * <B>詳細説明: </B> | |
17 | + * <PRE> | |
18 | + * </PRE> | |
19 | + * @author Masayasu Koizumi | |
20 | + * @since TODO 作成時のバージョン | |
21 | + * @since TODO 現在のバージョン | |
22 | + */ | |
23 | +public class CayenneEntityContext implements EntityContext { | |
24 | + | |
25 | +} |
@@ -0,0 +1,28 @@ | ||
1 | +/* LIBRAフレームワークプロジェクト | |
2 | + * 株式会社トータルソフト | |
3 | + * (C)Totalsoft co.,Ltd.All Rights Reserved. | |
4 | + * | |
5 | + * 作成日:2010/10/19 | |
6 | + * 作成者:Masayasu Koizumi | |
7 | + * | |
8 | + */ | |
9 | +package jp.co.totalsoft.libra.example.persistence; | |
10 | + | |
11 | +/** | |
12 | + * <B>概略: </B>TODO クラス論理名 | |
13 | + * <PRE> | |
14 | + * TODO クラスの概要と責務 | |
15 | + * </PRE> | |
16 | + * <B>詳細説明: </B> | |
17 | + * <PRE> | |
18 | + * </PRE> | |
19 | + * @author Masayasu Koizumi | |
20 | + * @since TODO 作成時のバージョン | |
21 | + * @since TODO 現在のバージョン | |
22 | + */ | |
23 | +public class PersistenceExample { | |
24 | + | |
25 | + public static void main(String[] args) throws Throwable { | |
26 | + | |
27 | + } | |
28 | +} |
@@ -5,7 +5,7 @@ | ||
5 | 5 | |
6 | 6 | import jp.co.totalsoft.libra.example.persistence.entity.Company; |
7 | 7 | import jp.co.totalsoft.libra.example.persistence.entity.Employee; |
8 | -import jp.co.totalsoft.libra.persistence.CayenneEntityObject; | |
8 | +import jp.co.totalsoft.libra.persistence.CayenneEntity; | |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class _Section was generated by Cayenne. |
@@ -13,7 +13,7 @@ | ||
13 | 13 | * since it may be overwritten next time code is regenerated. |
14 | 14 | * If you need to make any customizations, please use subclass. |
15 | 15 | */ |
16 | -public abstract class _Section extends CayenneEntityObject { | |
16 | +public abstract class _Section extends CayenneEntity { | |
17 | 17 | |
18 | 18 | public static final String DELETED_PROPERTY = "deleted"; |
19 | 19 | public static final String SECTION_NAME_PROPERTY = "sectionName"; |
@@ -5,7 +5,7 @@ | ||
5 | 5 | |
6 | 6 | import jp.co.totalsoft.libra.example.persistence.entity.Office; |
7 | 7 | import jp.co.totalsoft.libra.example.persistence.entity.Section; |
8 | -import jp.co.totalsoft.libra.persistence.CayenneEntityObject; | |
8 | +import jp.co.totalsoft.libra.persistence.CayenneEntity; | |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class _Company was generated by Cayenne. |
@@ -13,7 +13,7 @@ | ||
13 | 13 | * since it may be overwritten next time code is regenerated. |
14 | 14 | * If you need to make any customizations, please use subclass. |
15 | 15 | */ |
16 | -public abstract class _Company extends CayenneEntityObject { | |
16 | +public abstract class _Company extends CayenneEntity { | |
17 | 17 | |
18 | 18 | public static final String COMPANY_NAME_PROPERTY = "companyName"; |
19 | 19 | public static final String DELETED_PROPERTY = "deleted"; |
@@ -3,7 +3,7 @@ | ||
3 | 3 | import java.math.BigDecimal; |
4 | 4 | |
5 | 5 | import jp.co.totalsoft.libra.example.persistence.entity.Company; |
6 | -import jp.co.totalsoft.libra.persistence.CayenneEntityObject; | |
6 | +import jp.co.totalsoft.libra.persistence.CayenneEntity; | |
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class _Office was generated by Cayenne. |
@@ -11,7 +11,7 @@ | ||
11 | 11 | * since it may be overwritten next time code is regenerated. |
12 | 12 | * If you need to make any customizations, please use subclass. |
13 | 13 | */ |
14 | -public abstract class _Office extends CayenneEntityObject { | |
14 | +public abstract class _Office extends CayenneEntity { | |
15 | 15 | |
16 | 16 | public static final String DELETED_PROPERTY = "deleted"; |
17 | 17 | public static final String OFFICE_ADDRESS_PROPERTY = "officeAddress"; |
@@ -3,7 +3,7 @@ | ||
3 | 3 | import java.math.BigDecimal; |
4 | 4 | |
5 | 5 | import jp.co.totalsoft.libra.example.persistence.entity.Section; |
6 | -import jp.co.totalsoft.libra.persistence.CayenneEntityObject; | |
6 | +import jp.co.totalsoft.libra.persistence.CayenneEntity; | |
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class _Employee was generated by Cayenne. |
@@ -11,7 +11,7 @@ | ||
11 | 11 | * since it may be overwritten next time code is regenerated. |
12 | 12 | * If you need to make any customizations, please use subclass. |
13 | 13 | */ |
14 | -public abstract class _Employee extends CayenneEntityObject { | |
14 | +public abstract class _Employee extends CayenneEntity { | |
15 | 15 | |
16 | 16 | public static final String DELETED_PROPERTY = "deleted"; |
17 | 17 | public static final String EMPLOYEE_NAME_PROPERTY = "employeeName"; |
@@ -6,7 +6,7 @@ | ||
6 | 6 | <property name="defaultLockType" value="optimistic"/> |
7 | 7 | <property name="defaultPackage" value="jp.co.totalsoft.libra.example.persistence.entity"/> |
8 | 8 | <property name="defaultSchema" value="libra_example"/> |
9 | - <property name="defaultSuperclass" value="jp.co.totalsoft.libra.persistence.CayenneEntityObject"/> | |
9 | + <property name="defaultSuperclass" value="jp.co.totalsoft.libra.persistence.CayenneEntity"/> | |
10 | 10 | <db-entity name="company" schema="libra_example" catalog="libra_example"> |
11 | 11 | <db-attribute name="company_id" type="CHAR" isPrimaryKey="true" isMandatory="true" length="8"/> |
12 | 12 | <db-attribute name="company_name" type="VARCHAR" isMandatory="true" length="256"/> |
@@ -37,17 +37,17 @@ | ||
37 | 37 | <db-attribute name="section_name" type="VARCHAR" isMandatory="true" length="256"/> |
38 | 38 | <db-attribute name="update_sequence" type="DECIMAL" isMandatory="true" length="16"/> |
39 | 39 | </db-entity> |
40 | - <obj-entity name="Company" className="jp.co.totalsoft.libra.example.persistence.entity.Company" lock-type="optimistic" dbEntityName="company" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntityObject"> | |
40 | + <obj-entity name="Company" className="jp.co.totalsoft.libra.example.persistence.entity.Company" lock-type="optimistic" dbEntityName="company" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntity"> | |
41 | 41 | <obj-attribute name="companyName" type="java.lang.String" db-attribute-path="company_name"/> |
42 | 42 | <obj-attribute name="deleted" type="java.lang.String" db-attribute-path="deleted"/> |
43 | 43 | <obj-attribute name="updateSequence" type="java.math.BigDecimal" db-attribute-path="update_sequence"/> |
44 | 44 | </obj-entity> |
45 | - <obj-entity name="Employee" className="jp.co.totalsoft.libra.example.persistence.entity.Employee" lock-type="optimistic" dbEntityName="employee" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntityObject"> | |
45 | + <obj-entity name="Employee" className="jp.co.totalsoft.libra.example.persistence.entity.Employee" lock-type="optimistic" dbEntityName="employee" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntity"> | |
46 | 46 | <obj-attribute name="deleted" type="java.lang.String" db-attribute-path="deleted"/> |
47 | 47 | <obj-attribute name="employeeName" type="java.lang.String" db-attribute-path="employee_name"/> |
48 | 48 | <obj-attribute name="updateSequence" type="java.math.BigDecimal" db-attribute-path="update_sequence"/> |
49 | 49 | </obj-entity> |
50 | - <obj-entity name="Office" className="jp.co.totalsoft.libra.example.persistence.entity.Office" lock-type="optimistic" dbEntityName="office" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntityObject"> | |
50 | + <obj-entity name="Office" className="jp.co.totalsoft.libra.example.persistence.entity.Office" lock-type="optimistic" dbEntityName="office" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntity"> | |
51 | 51 | <obj-attribute name="deleted" type="java.lang.String" db-attribute-path="deleted"/> |
52 | 52 | <obj-attribute name="officeAddress" type="java.lang.String" db-attribute-path="office_address"/> |
53 | 53 | <obj-attribute name="officeName" type="java.lang.String" db-attribute-path="office_name"/> |
@@ -54,7 +54,7 @@ | ||
54 | 54 | <obj-attribute name="officeTelephoneNumber" type="java.lang.String" db-attribute-path="office_telephone_number"/> |
55 | 55 | <obj-attribute name="updateSequence" type="java.math.BigDecimal" db-attribute-path="update_sequence"/> |
56 | 56 | </obj-entity> |
57 | - <obj-entity name="Section" className="jp.co.totalsoft.libra.example.persistence.entity.Section" lock-type="optimistic" dbEntityName="section" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntityObject"> | |
57 | + <obj-entity name="Section" className="jp.co.totalsoft.libra.example.persistence.entity.Section" lock-type="optimistic" dbEntityName="section" superClassName="jp.co.totalsoft.libra.persistence.CayenneEntity"> | |
58 | 58 | <obj-attribute name="deleted" type="java.lang.String" db-attribute-path="deleted"/> |
59 | 59 | <obj-attribute name="sectionName" type="java.lang.String" db-attribute-path="section_name"/> |
60 | 60 | <obj-attribute name="updateSequence" type="java.math.BigDecimal" db-attribute-path="update_sequence"/> |