Timeline for Hibernate does not generate table with annotations
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 29, 2012 at 13:35 | comment | added | CE_REAL | @SubinS Like I said, I renamed the table annotation and the class to mediaUser and MediaUser. That didn't help. The property does say true, but it doesn't show me any queries, that's probably why there isn't a table created, but I can't find the solution to why it isn't generating queries/sql. | |
| Nov 29, 2012 at 13:23 | comment | added | Subin Sebastian | user is a reserved keyword in most databases, so use something like user_table in @Table annotation | |
| Nov 29, 2012 at 13:22 | comment | added | Subin Sebastian | are you sure , <prop key="hibernate.show_sql" >true</prop> and see the queries going | |
| Nov 28, 2012 at 19:12 | comment | added | CE_REAL | Unfortunately that didn't help. I renamed my User class to MediaUser and the @Table annotation to mediaUser and still nothing happened. It does say it's running the export. INFO - SchemaExport - Running hbm2ddl schema export INFO - SchemaExport - exporting generated schema to database INFO - SchemaExport - schema export complete | |
| Nov 28, 2012 at 19:03 | history | answered | Marcio Barroso | CC BY-SA 3.0 |