Automatic register SessionEventListener in DatabasePlatform [message #1666306] |
Wed, 11 March 2015 16:35 |
Vu Tran Messages: 1 Registered: March 2015 |
Junior Member |
|
|
Hello,
I am trying to write a new DatabasePlatform for Progress OpenEdge and I am trying to customize array field type. Basically I want to do the following:
@Column(name="col1")
String[] col1;
@Column(name="col2")
Integer[] col2;
@Column(name="col3")
BigDecimal[] col3;
So I want to automate the data conversion from database (a String) and convert it to the array datatype automatically and vice versa, from the array to string. It seems that I can only hook up into the SessionEventListener to perform the necessary operations (setup the converter) and it requires a configuration entry in the persistence.xml in addition to the target-database entry.
I would like to eliminate the step to configure the SessionListener and somehow configure it directly via the DatabasePlatform. Is it possible?
Thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.03808 seconds