2 Replies Latest reply on Jan 25, 2005 8:00 AM by Bill Burke

    Many-to-Many Relationship and isInverse

    Michael Ralston Newbie

      I've noticed the syntax for a many-to-many relationship seems to have changed. I was successfully using this...

      @ManyToMany(cascade = { CascadeType.CREATE, CascadeType.MERGE }, fetch = FetchType.EAGER, isInverse = true)

      Now isInverse isn't there anymore...

      I've also tried running the relationships tutorial from current cvs and I get a nullpointer exception.

      2005-01-23 16:12:05,376 ERROR [org.jboss.ejb3.Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=tutorial.ejb3
      java.lang.NullPointerException
      at org.jboss.ejb3.entity.EntityToHibernateXml.handleManyToMany(EntityToHibernateXml.java:710)
      at org.jboss.ejb3.entity.EntityToHibernateXml.iterateProperties(EntityToHibernateXml.java:217)
      at org.jboss.ejb3.entity.EntityToHibernateXml.handleBasicClass(EntityToHibernateXml.java:1820)
      at org.jboss.ejb3.entity.EntityToHibernateXml.handleClass(EntityToHibernateXml.java:1431)
      at org.jboss.ejb3.entity.EntityToHibernateXml.convert(EntityToHibernateXml.java:135)
      at org.jboss.ejb3.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:141)
      at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.java:212)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:224)