Entity Bean Generation from Postgres 8.4 database [message #830187] |
Tue, 27 March 2012 06:05  |
Eclipse User |
|
|
|
Hi all,
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. He informed me 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.
[Updated on: Tue, 27 March 2012 06:06] by Moderator
|
|
|
Re: Entity Bean Generation from Postgres 8.4 database [message #830310 is a reply to message #830187] |
Tue, 27 March 2012 09:12   |
Eclipse User |
|
|
|
On 3/27/2012 4:05 AM, shalin lazar wrote:
> Hi all,
>
> 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 and EclipseLink. He informed me 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.
This is the Eclipse web tools platform forum.
Your question has little to nothing to do with web platform, it would be
more appropriate in the Eclipse data tools or Eclipse Links forums.
(That may be what you mean by "elsewhere on the boards".) For something
like this, I'd ask on stackoverflow.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09595 seconds