javax.persistence.PersistenceException

org.hibernate.MappingException: identifier mapping has wrong number of columns: foo.bar.MyObject type: foo.bar.MyCompositeType

Solutions on the web480

  • via Hibernate JIRA by Jens Schumann, 9 months ago
    org.hibernate.MappingException: identifier mapping has wrong number of columns: foo.bar.MyObject type: foo.bar.MyCompositeType
  • via Hibernate JIRA by Jens Schumann, 1 year ago
    org.hibernate.MappingException: identifier mapping has wrong number of columns: foo.bar.MyObject type: foo.bar.MyCompositeType
  • org.hibernate.MappingException: No Dialect mapping for JDBC type: -101
  • Stack trace

    • javax.persistence.PersistenceException: org.hibernate.MappingException: identifier mapping has wrong number of columns: foo.bar.MyObject type: foo.bar.MyCompositeType at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:149) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:73) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) at foo.bar.SimpleEntityManagerTest.setUp(SimpleEntityManagerTest.java:27) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31) Caused by: org.hibernate.MappingException: identifier mapping has wrong number of columns: foo.bar.MyObject type: foo.bar.MyCompositeType at org.hibernate.mapping.RootClass.validate(RootClass.java:194) at org.hibernate.cfg.Configuration.validate(Configuration.java:975) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1139) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484) at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:96) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:142) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    4 times, 1 month ago
    16 times, 10 months ago
    Unknown user
    2 times, 10 months ago
    Unknown user
    Once, 10 months ago
    35 more bugmates