facebook

Hibernate editor problem

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #254465 Reply

    javaexpert
    Member

    Hi,

    I use My Eclipse 5.0M2 und have a problem with Hibernate mapping files.

    
    <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
                      "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    ..
    <property name="documentation" column="DOCUMENTATION" insert="false" update="false" generated="insert" />
    

    The code above is valid but MyEclipse means:
    Attribute “generated” must be declared for element type “property”.
    It shows me also no code assist for the generated attribute.

    Regards,
    Ralph

    #254492 Reply

    Haris Peco
    Member

    Ralph,

    MyEclipse have catalog with older version hibernate dtd file (without generated attribute)
    You can try change catalog definition in Windows-Preferences-Web and XML-XML Catalog

    Best regards

    #254502 Reply

    javaexpert
    Member

    Hi,

    thanks for your help.

    @support-snpe wrote:

    MyEclipse have catalog with older version hibernate dtd file (without generated attribute)
    You can try change catalog definition in Windows-Preferences-Web and XML-XML Catalog

    I found the appropriate preference dialog. I didn’t make changes there but I changed the dtd in ..\MyEclipse 5.0M2\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.9.200\catalog-dtd with the actual from http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd and now it works fine.

    But I am still wondering:
    Is there an reason why there is an obsolete dtd is given in xml catalog?

    BTW the Advanced, Export function lets only choose a project directoy and does nothing wirte meaningful in my case.

    Regards,
    Ralph

    #254503 Reply

    Haris Peco
    Member

    Is there an reason why there is an obsolete dtd is given in xml catalog?

    MyEclipse use hibernate 3.0.5 and it is dtd for this version

    Best

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Hibernate editor problem

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