Hibernate version: 2.1.7
Hello,
I'm trying to map an oracle view to a persistent java object. So there is no real primary key. I still have a functionnal one I can use but I would prefer not to since I don't need it (an also, there would be a component in it which is not accepted in a composite id so I would need to do a user type also).
Hibernate documentation (section 4.1.3 ) seems to tell that a primary key is not mandatory. However, the DTD doesn't seem to agree. An id tag is mandatory as well as a generator. Then, section 5.1.4 is telling us that
Quote:
If the name attribute is missing, it is assumed that the class has no identifier property.
The problem is that when name is missing, it seems to be defaulted to "id". So it still doesn't work.
I also had a look at the wiki in the advanced problems section that seems to tell a primary key is in fact needed. In this case the documentation is out-of-date.
Can someone help me?
Thanks,
Henri
P.S.: I also thought about a composite-id without properties by the DTD doesn't like that either.