1 Reply Latest reply on Nov 10, 2008 1:47 PM by 2dc

    Jboss tools + Oracle

    2dc
      Hi,

      When I try to generate entities with Jboss tools in Eclipse, I get 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)'



      The problem only occurs with Oracle, I tried with MySQL and it worked fine.

      I also tried with seam-gen in command line and it worked, I think that it's because I set hibernate.default_schema in the buid.properties.

      How can I set this property in the Jboss tools?

      Thanks in advance!