This content has been marked as final.
Show 4 replies
-
1. Re: Duplicate Indexes and Relations
oguzyalcin.oguzhanyalcin.gazi.edu.tr Oct 5, 2009 5:16 AM (in response to asriel)Because you're using hibernate in update mode. It rebuilds all the tables and foreing keys .
-
2. Re: Duplicate Indexes and Relations
oguzyalcin.oguzhanyalcin.gazi.edu.tr Oct 5, 2009 5:22 AM (in response to asriel)You can cancel the update mode by removing
<property name="hibernate.hbm2ddl.auto" value="update"/>
line from the persistence.xml
-
3. Re: Duplicate Indexes and Relations
asriel Oct 6, 2009 2:33 PM (in response to asriel)Thank you. I'll try it ASAP.
Side effects of deleting that line from persistence.xml? -
4. Re: Duplicate Indexes and Relations
oguzyalcin.oguzhanyalcin.gazi.edu.tr Oct 6, 2009 3:53 PM (in response to asriel)This line tells hibernate engine to rebuild all the database objects according to the entities . So if you don't need this, than no problem.:)