Entity Bean Generation from Postgres 8.4 database [message #830187] |
Tue, 27 March 2012 10:05 |
shalin lazar Messages: 18 Registered: February 2012 |
Junior Member |
|
|
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 10:06] Report message to a moderator
|
|
|
Re: Entity Bean Generation from Postgres 8.4 database [message #830310 is a reply to message #830187] |
Tue, 27 March 2012 13:12 |
|
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.
|
|
|
|
Re: Entity Bean Generation from Postgres 8.4 database [message #830357 is a reply to message #830329] |
Tue, 27 March 2012 14:24 |
|
On 3/27/2012 7:42 AM, shalin lazar wrote:
> Thank and sorry Russel. I did land up on this forum from the link posted
> on Dali Java Persistence Tools page. Stackoverflow it is then.
--just saying. Sometimes a "between two worlds" problem is hard to
resolve. stackoverflow is particularly good at it.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03499 seconds