|Customizing schema generation [message #1066091]
||Sun, 30 June 2013 10:13
| dan pomerchik
Registered: June 2013
We are using eclipse link to generate our tables.
We need to add special columns to our tables, which are not a part of the entity (we have created our own CVS system, and we store more info about the CVS in those columns)
currenty, we let EL create our database and afterwards we run a script that adds our custom fields and create views and more. I would like to integrate somehow into EL code and manipulate the tables it creates.
I've reached a situation when i am able to add a field and change the table name. (im doing it using sessionEvent on preLogin.) however it works only for the 'main' table. E.g. if it's a collection table, for some reason it adds beside my column an ID column as well... - for example, i have my base class that defines a UUID field as my ID.
my object has another field, a collection of UUIDs. When that table is created, i get another objId field in the collection table..
Attached my code. (its a screenshot because my work blocks posting code.. :/) I hope you understand my question.. thanks.
[Updated on: Mon, 01 July 2013 09:51]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01548 seconds