-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Single table per class hierarch mapping.
PostPosted: Mon Jan 22, 2007 1:40 pm 
Newbie

Joined: Wed Sep 27, 2006 1:15 pm
Posts: 10
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.