Guys,
was trying to use single table per class hierarchy; originally had one class Order per table (Orders); everything was working great; then tried to introduce child class OptionOrder and failed with mapping. What might be wrong?
Thank you in advance,
Caesar
Hibernate version: 3.1
Mapping documents:<class name="com.name.hiberfacade.Order" table="Orders" dynamic-insert="true" dynamic-update="true" lazy="false" polymorphism="explicit" discriminator-value="R">
<id name="cdlKey" type="string" column="OrderId" > </id>
<discriminator column="SubclassType" type="string"/>
<property ...... </property>
<subclass name="com.name.hiberfacade.OptionOrder" extends="com.name.hiberfacade.Order" discriminator-value="O"> </subclass> </class>
Full stack trace of any exception that occurs:55 [java] 2007-01-19 15:30:24,608 [main] ERROR org.hibernate.proxy.BasicLazyInitializer - CGLIB Enhancement failed: com.wachovia.cib.cdl.hiberfacade.OptionOrder 56 [java] java.lang.NoClassDefFoundError 57 [java] at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) 58 [java] at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) 59 [java] at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) 60 [java] at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) 61 [java] at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131) 62 [java] at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) 63 [java] at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) 64 [java] at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257) 65 [java] at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412) 66 [java] at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108) 67 [java] at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) 68 [java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216) 69 [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
Name and version of the database you are using: Sybase
|