Customizing schema generation [message #1066094] |
Sun, 30 June 2013 06:30  |
Eclipse User |
|
|
|
hi,
I need to modify the tables created by eclipselink. We have a custom CVS system we implemented, which requires some additional columns for each table (which we dont want to be a part of the entity. that is, its only in the database, not in the java class - like DTYPE for example. we have some stored procedures and views that regard those columns). anyway, currently we do it by letting EL create the database and afterwards we run a PLSQL script to change the names of the tables, add columns and create views..
I want to replace this script by integrating somehow into EL schema generation. The easiest point i found to do it, is by using the SessionEvent listener. Using preLogin event i have the session/project and i can modify it. The problem is that i succeeded adding a field to the 'main' table, but when i try adding to the collection table, i get for some reason, except for my added column, an objId field (its my primary key of the 'main' table). Attached my code (its screenshot because my work doesn't allow posting code.. :/) I hope you understand my question..
Thanks.,
|
|
|
|
Re: Customizing schema generation [message #1067192 is a reply to message #1066638] |
Sun, 07 July 2013 08:53  |
Eclipse User |
|
|
|
So it isn't possible doing it that way? it almost works... the only problem it's that for the collection table it adds another field...
What do you mean new script features? i took a look on that wiki and didn't quite got it.
|
|
|
Powered by
FUDForum. Page generated in 0.14850 seconds