3 Replies Latest reply on May 5, 2016 9:14 AM by danilo.ambrosio

    Generate entities + Oracle

    2dc

      Hi,

      I'm trying to generate entities for a seam project using Eclipse with Jboss tools.
      I'm using Oracle 10g.
      It works fine if I use seam-gen in command line but the Jboss tool gives me the following error :



      Can't generate seam entities
      org.hibernate.cfg.JDBCBinderException: Duplicate class name 'org.domain.ORA.entity.AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'
      Duplicate class name 'org.domain.ORA.entity.AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'
      org.hibernate.cfg.JDBCBinderException: Duplicate class name 'org.domain.ORA.entity.AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'
      Duplicate class name 'org.domain.ORA.entity.AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'


      I think that the difference between the tool and the command line is that I can set the hibernate.default_schema property in my build.properties file.
      How can I specify that in Eclipse?

      Thanks in advance for your help!