@support-rkalla wrote:
If the table has no PK, there is no ID to generate, this isn’t a bug. Please specify why you think it is.
Because the Hibernate 3.0 DTD states that either id or composite-id is mandatory in the class element, which Eclipse also complains about when validating; the mapping XML is flagged in the project hierarchy as a file with an error because of this, until you add the required <id /> to it.
From http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd:
(id|composite-id),
Note the lack of a ? at the end, which would have indicated that the element was optional.