I am having a problem with the generated classes and the mapping file for a database view on a MSSQL DB. We use the views only to read data, so there are not necessarily unique ID’s. I select “Java Type” and ID generator “identity”, and do not select composite ID generation. But what comes out are 2 classes with identical and empty “default constructor” and “full constructor”, which do not compile, and an ID class with all the properties which I would expect in the other 2 classes. Furthermore the hibernate-mapping file has only a composite-id, and no properties.
Can anyone help me, what I am doing wrong, or is it a mapping generator bug?
I am using Eclipse 3.1.2, MyEclipse 4.1