I was told this was a Tools issue so here goes:
Hibernate version:3
I attempted to follow the UserType example in "Hibernate: A Developer's Notebook" to implement my own UserType...
I can supply code if it would help but my question is a simple one:
In the mapping document the UserType classname is used (type="myClassType" let's say)
but when I generate code from the mapping doc the properties that use the "myClassType" appear as "myClassType" not as "myClass"
i.e.
Code:
private myClassType myproperty;
instead of
Code:
private myClass myproperty;
I thought my UserType was set up correctly and that this section of code was supposed to deal with this issue:
Code:
public Class returnedClass() {
return myClass.class;
}//end Class
(if I go through and manually replace "myClassType" with "myClass" in the generated code, everything seems to work [at least querying FROM the database] but that requires manually fixing it EVERY time I generate code)
Has there been some kind of change from version 2 to version 3 that would cause this?
P.S. Also my Hibernate Configuration in Eclipse is complaining about the "myClassType" - but I don't know how to fix THAT one manually[/code]