[ https://issues.apache.org/jira/browse/JUDDI-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kurt T Stam resolved JUDDI-587. ------------------------------- Resolution: Won't Fix Right it looks like if you use a InheritanceType.JOINED then hibernate 4.x and up has issues. Since every persistence class inherits from UddiEntity, I don't think this can be fixed in jUDDI. @Inheritance(strategy = InheritanceType.JOINED) public abstract class UddiEntity implements Comparable<UddiEntity>{ I think you'll have to try to take this up with the Hibernate project as I don't think this is fixable in our jUDDI codebase. Sorry, --Kurt > JUDDI incompatible with Hibernate 4.1.x and 4.2.x > ------------------------------------------------- > > Key: JUDDI-587 > URL: https://issues.apache.org/jira/browse/JUDDI-587 > Project: jUDDI > Issue Type: Bug > Components: core > Affects Versions: 3.1.4 > Reporter: subes > Assignee: Kurt T Stam > > JUDDI is affected by the following Bug in Hibernate: > https://hibernate.atlassian.net/browse/HHH-7630 > {quote} > Caused by: org.hibernate.HibernateException: Could not locate table which > owns column [entity_key] referenced in order-by mapping > at > org.hibernate.persister.entity.JoinedSubclassEntityPersister.determineTableNumberForColumn(JoinedSubclassEntityPersister.java:854) > at > org.hibernate.persister.entity.AbstractEntityPersister.getTableAliasForColumn(AbstractEntityPersister.java:4967) > at > org.hibernate.persister.collection.AbstractCollectionPersister$StandardOrderByAliasResolver.resolveTableAlias(AbstractCollectionPersister.java:1931) > at > org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator$StandardOrderByTranslationImpl.injectAliases(OrderByFragmentTranslator.java:106) > at > org.hibernate.persister.collection.AbstractCollectionPersister.getSQLOrderByString(AbstractCollectionPersister.java:747) > at org.hibernate.loader.JoinWalker.orderBy(JoinWalker.java:938) > at org.hibernate.loader.JoinWalker.orderBy(JoinWalker.java:850) > at > org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:123) > at > org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:108) > at > org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:90) > at > org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:77) > at > org.hibernate.loader.entity.CascadeEntityJoinWalker.<init>(CascadeEntityJoinWalker.java:51) > at > org.hibernate.loader.entity.CascadeEntityLoader.<init>(CascadeEntityLoader.java:46) > at > org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:3881) > at > org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:3818) > at > org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:461) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750) > at > org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) > at > org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920) > ... 45 more > {quote} > Maybe this can be fixed inside JUDDI instead of waiting for a fix in > Hibernate (since it persists for a very long time now). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira