![]() |
![]() |
|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 3
|
|
| Author |
|
|
Newbie China Joined: Jan 4, 2010 Post Count: 1 Status: Offline |
The datanucleus schema tool occurs a error when using the identity propertity in my database(my database is not inclued in DB2, MYSQL, SyBase, HSQLDB, H2, PostgreSQL ),the error is : DataNucleus SchemaTool (version 2.0.0-m4) : Creation of the schema An exception was thrown during the operation of SchemaTool. Please refer to the log for full details. The following may help : Class "org.datanucleus.samples.jpa.tutorial.Product" has field "id" specified as using autoassign/identity, yet the RDBMS in use doesnt support this feature. The development IDE: MyEclipse 5.5 The product source is in accesary. I would like to know whether the datanucleus just suportes auto-increment/identity/serial keys for DB2, MySQL, Sybase, HSQLDB, H2 and PostgreSQL not for other database, if not, the datanucleus is how to support identity property or other databases whether support some datanuleus API. Thank you very much! |
||
|
|
Expert UK Joined: Mar 13, 2004 Post Count: 5376 Status: Offline |
So the datastore adapter you're using doesn't support identity. If you wanted to provide support for that datastore (which you don't say what it is) then you go to the relevant plugin-point http://www.datanucleus.org/extensions/datastore_adapter.html and provide a datastore adapter (look at SVN for the most recent version of DatabaseAdapter which you extend from), and implement the methods about Identity/AutoIncrement. Then when you've implemented it, you can donate it to the project ---------------------------------------- -Andy ![]() ![]() |
||
|
|
Newbie China Joined: Mar 9, 2010 Post Count: 1 Status: Offline |
I wonder how the DataNucleus know whether the RDBMS in use supports GenerationType.IDENTITY |
||
|
|
|
|
|
Current timezone is GMT Sep 9, 2010 10:09:00 PM |