facebook

Missing when generating Hibernate mapping

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #238263 Reply

    JadedGamer
    Member

    This message has not been recovered.

    #238273 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #238353 Reply

    JadedGamer
    Member

    @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.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Missing when generating Hibernate mapping

You must be logged in to post in the forum log in