|Entity Bean Generation from Postgres 8.4 database [message #831186]
||Wed, 28 March 2012 11:28
| shalin lazar
Registered: February 2012
I've posted elsewhere on the boards, and a kind individual has directed me here. I built a PostgreSQL 8.4 database, but am having problems generating the Entity Beans via JPA's generation tool.I was informed that this wasn't an issue with EclipseLink, so here I am.
Basically I have two problems:
1) Not all Entity Beans are generated (database has around 250 tables).
2) I'm getting various association 'naming' errors.
Basically, I didn't name my foreign key columns <foreignTableName>_<foreignTableColumnName>. Is there any way around this issue (not considering going through all the tables and renaming columns)? And if that is the only option, what would I do if I have two columns referencing the same column on the same table?
Eg. accountTransactCenter.accountId -> account.id and accountTransactCenter.contraAccountId -> account.id
I would really appreciate any help. If you need more information, please let me know.
Thanks and best regards.