First, TOPL
1, toplink configuration-------14.3.3 Configuration Log
----The practical explanation of the persistence layer development of EJB JPA database---The first EJB and JPA monograph in China
-----http://book.51cto.com/art/200806/76698.htm
(http://ajava.org/readbook/J2EE/ejbjpa/12464.html)
TopLink the required class package for the run.
-toplink-essentials.jar:toplink's core class package file.
The-toplink-essentials-agent.jar:toplink runtime proxy class package supports JVM-level AOP.
2,
Toplink_en only contains English Javadoc help,
TopLink contains multilingual help (utils\workbench\jlib\help, including simplified Traditional Chinese)
2. Primary key generation
@Column (name = "ModuleID", Nullable = False)
@Id
@GeneratedValue (Strategy=generationtype.auto)
private int ModuleID;
-----------------------------------------------------------------------AUTO, IDENTITY, SEQUENCE, TABLE
AUTO------------------
Identity-------------assign a unique value to the newly added entity object using the database's self-growth field as the identity of the entity. In this case, the database is required to provide support for the growth field, which is supported by databases such as Hsql, SQL Server, MySQL, DB2, and Derby in common databases.
SEQUENCE---------uses the serial number of the database to assign a unique value to the newly added entity object as the identity of the entity. In this case, the database is required to provide support for serial numbers, and databases such as Oracle and PostgreSQL can provide such support in common databases.
Table-----------------represents the identification of an entity object by using a field in the specified table in the database, with the growth of that field assigning a unique value to the newly added entity object as the identity of the entity.
------------------------------------------------------------------------
Reference: http://cache.baidu.com/c?m= 9f65cb4a8c8507ed4fece76310488c3a5e1e97634b8b875378d4965f93130a1d5a18b8e7606855538f932f3b54b2100fb1a4652870507cefc094dd578 5e8d67b328923347216914165895ff09552609c60c655aff25bb9e1ac6b84aea38e9f07029404127af1a5dc0657549929ab496da5eddb1f &p=8b2a96438fd01cf217afc4710a13a5&user=baidu&fm=sc&query=toplink+oracle+generationtype&qid =926cb69b0afc7a5c&p1=145