Customizing schema generation [message #1066094] |
Sun, 30 June 2013 10:30 |
dan pomerchik Messages: 5 Registered: June 2013 |
Junior Member |
|
|
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.,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03743 seconds