Hi!
I have a problem with Hibernate UserTypes in MyEclipse2015 CI16 when generating POJOs for a Hibernate-Mapping-File (.hbm.xml)
I do the same as described in this topic: closed-hibernate-usertype
I’m using Hibernate UserTypes like the described TrimmedStringType for several years now
and until MyEclipse2014, MyEclipse generated the POJOs with the Type “String” for properties with the Type “TrimmedStringType”.
But now with MyEclipse2015 CI16, the Hibernate UserTypes are not treated the same way anymore.
MyEclipse2015 doesn’t generate the POJOs with the Type that is given by UserType.returnedClass(), but it takes the Hibernate UserType instead.
Example:
Behaviour MyEclipse2014:
.hbm.xml: <property name=”street” type=”my.own.usertype.TrimmedStringType”>
Generated POJO: private String street;
Behaviour MyEclipse2015:
.hbm.xml: <property name=”street” type=”my.own.usertype.TrimmedStringType”>
Generated POJO: private TrimmedStringType street;
In this example, MyEclipse2015 doesn’t take the Type java.lang.String given by TrimmedStringType.returnedClass() anymore.
Could you please fix this?
As you see in the mentioned topic from 2007, it worked since MyEclipse Verion 5.5GA.
Best regards, Thomas