Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10079

JPA: NPE when NamingStrategy with xml mapping is used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 3.3.0.M4
    • 3.3.0.M5
    • hibernate
    • None

    Description

      java.lang.NullPointerException
      at org.hibernate.util.StringHelper.unqualify(StringHelper.java:165)
      at org.hibernate.cfg.EJB3NamingStrategy.classToTableName(EJB3NamingStrategy.java:40)
      at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmTableImpl.buildDefaultDBTableName(HibernateOrmTableImpl.java:78)
      at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmTableImpl.synchronizeWithResourceModel(HibernateOrmTableImpl.java:53)
      at org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmEntity.synchronizeWithResourceModel(AbstractOrmEntity.java:231)
      at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmEntityImpl.synchronizeWithResourceModel(HibernateOrmEntityImpl.java:66)
      at org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.GenericOrmPersistentType.synchronizeWithResourceModel(GenericOrmPersistentType.java:123)
      at org.eclipse.jpt.jpa.core.internal.context.ContextContainerTools.sync(ContextContainerTools.java:137)

      Attachments

        Activity

          People

            dgeraskov Dmitry Geraskov (Inactive)
            dgeraskov Dmitry Geraskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: