org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)]

Hibernate JIRA | Chris Rudd | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using an OneToMany/ManyToMany relationship to hbm mapped class from an annotated class causes error. If both classes are mapped the same way (annotated or hbm) this works fine. Also using a ManyToOne or OneToOne relationship works correctly. Stack Trace : org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at org.hibernate.mapping.Collection.validate(Collection.java:262) at org.hibernate.cfg.Configuration.validate(Configuration.java:988) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169) at mappings.MappingTest.testOneToMany(MappingTest.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536) at org.testng.internal.Invoker.invokeMethod(Invoker.java:395) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:672) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92) at org.testng.TestRunner.privateRun(TestRunner.java:624) at org.testng.TestRunner.run(TestRunner.java:515) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221) at org.testng.SuiteRunner.run(SuiteRunner.java:147) at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98) at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)

    Hibernate JIRA | 1 decade ago | Chris Rudd
    org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)]
  2. 0

    Using an OneToMany/ManyToMany relationship to hbm mapped class from an annotated class causes error. If both classes are mapped the same way (annotated or hbm) this works fine. Also using a ManyToOne or OneToOne relationship works correctly. Stack Trace : org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at org.hibernate.mapping.Collection.validate(Collection.java:262) at org.hibernate.cfg.Configuration.validate(Configuration.java:988) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169) at mappings.MappingTest.testOneToMany(MappingTest.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536) at org.testng.internal.Invoker.invokeMethod(Invoker.java:395) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:672) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92) at org.testng.TestRunner.privateRun(TestRunner.java:624) at org.testng.TestRunner.run(TestRunner.java:515) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221) at org.testng.SuiteRunner.run(SuiteRunner.java:147) at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98) at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)

    Hibernate JIRA | 1 decade ago | Chris Rudd
    org.hibernate.MappingException: Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)]
  3. 0

    Unable to instantiate custom type error in Hibernate mapping Enum mapping

    Stack Overflow | 4 years ago | Johnny
    org.hibernate.MappingException: Unable to instantiate custom type: org.hibernate.type.EnumType
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate mapping. Table related with other two

    Stack Overflow | 1 year ago | Rob
    org.hibernate.MappingException: An association from the table A refers to an unmapped class: Shortcut

  1. kuldeep 16 times, last 5 months ago
  2. esaar 1 times, last 7 months ago
  3. r1chjames 1 times, last 8 months ago
  4. Kawada 6 times, last 9 months ago
  5. Harsh 1 times, last 10 months ago
34 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.MappingException

    Could not determine type for: mappings.HbmMapped, for columns: [org.hibernate.mapping.Column(elt)]

    at org.hibernate.mapping.SimpleValue.getType()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
    2. org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
    3. org.hibernate.mapping.Collection.validate(Collection.java:262)
    4. org.hibernate.cfg.Configuration.validate(Configuration.java:988)
    5. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169)
    5 frames
  3. mappings
    MappingTest.testOneToMany
    1. mappings.MappingTest.testOneToMany(MappingTest.java:113)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  5. TestNG
    SuiteRunner.run
    1. org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536)
    2. org.testng.internal.Invoker.invokeMethod(Invoker.java:395)
    3. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:672)
    4. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92)
    5. org.testng.TestRunner.privateRun(TestRunner.java:624)
    6. org.testng.TestRunner.run(TestRunner.java:515)
    7. org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
    8. org.testng.SuiteRunner.run(SuiteRunner.java:147)
    8 frames
  6. org.testng.eclipse
    RemoteTestNG.main
    1. org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
    2. org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
    2 frames