Author | Message |
---|---|
nahmed5
Posts: 57
|
Posted 23:52 Jan 28, 2015 |
Hi, Just to clarify my understanding, When I run Hbm2ddl.java, it creates gefp.ddl. Do I need to run it in the pgAdminIII first? Or should I use it as a guide and create the tables in the gefp-create.sql based on it? Because I ran my gefp.dll in pgAdmin but its id field are not auto increment even though I used the specified annotations. Feeling confused!
|
cysun
Posts: 2935
|
Posted 08:40 Jan 29, 2015 |
PostgreSQL uses sequence to generate unique ids, not auto_increment. If you run gefp.dll, it will create a sequence called "hibernate_sequence". You don't need to use that sequence directly, but if you want to learn more about sequence, you can read PostgreSQL documentation. |