Hi,
I tried to use the LocalEntityManagerFactoryBean and then the annotations was detected. The log below shows that the default serialization is ignored due to the @Convert annotation.
TopLink Finest]: 2007.11.14 03:34:01.077--ServerSession(32486590)--Thread(
Thread[main,5,main])--property=toplink.orm.throw.exceptions; default value=true
[TopLink Finer]: 2007.11.14 03:34:01.077--ServerSession(32486590)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/devtools/NG/eclipse/workspace/JpaTestProject%20-%20TopLink%2011g/target/classes/
[TopLink Config]: 2007.11.14 03:34:01.280--ServerSession(32486590)--Thread(Thread[main,5,main])--The alias name for the entity class [class com.statoil.sas.invpilot.customer.domain.Customer] is being defaulted to: Customer.
[TopLink Config]: 2007.11.14 03:34:01.280--ServerSession(32486590)--Thread(Thread[main,5,main])--The table name for entity [class com.statoil.sas.invpilot.customer.domain.Customer] is being defaulted to: CUSTOMER.
[TopLink Config]: 2007.11.14 03:34:01.312--ServerSession(32486590)--Thread(Thread[main,5,main])--The column name for element [private long com.statoil.sas.invpilot.customer.domain.Customer.id] is being defaulted to: ID.
[TopLink Config]: 2007.11.14 03:34:01.343--ServerSession(32486590)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Number com.statoil.sas.invpilot.customer.domain.Customer.age] is being defaulted to: AGE.
[TopLink Warning]: 2007.11.14 03:34:01.343--ServerSession(32486590)--Thread(Thread[main,5,main])--Ignoring default serialization on element [private java.lang.Number com.statoil.sas.invpilot.customer.domain.Customer.age] within entity class [class com.statoil.sas.invpilot.customer.domain.Customer] since a @Convert is specified.
Then, when using the LocalContainerEntityManagerFactoryBean I get the following log. As you can see, there is no indication of any Converters:-(
As you can see Im using TopLink 11g. Have any of you tried using toplink 11g annotations successfully with Spring LocalContainerEntityManagerFactoryBean?
Still struggling and hoping:-)
Best regards,
Rune