-->
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.  [ 4 posts ] 
Author Message
 Post subject: Pls hlp w/custom persister mapping in joined-subclass...
PostPosted: Thu Jan 29, 2004 11:53 pm 
Newbie

Joined: Tue Sep 30, 2003 8:14 pm
Posts: 10
Location: Southern Cali.
MY ERROR:

net.sf.hibernate.MappingException: Error reading resource:
.
.
.
Caused by: net.sf.hibernate.MappingException: invalid mapping
.
.
.
Caused by: org.xml.sax.SAXParseException: Attribute "persister" must be declared for element type "joined-subclass".

MY MAPPING (Part of it--all that's relative I hope):

<joined-subclass
name="com.somecompany.domain.persistenceobjects.someschema.SomeObject"
lazy="false"
table="SOMETABLE"
persister="com.ksomecompany.domain.persister.someschema.SomeObjectPersister"
>

I'm not sure what's up...it seems that "persister" is an attribute for joined-subclass according to the DTD. A solution or some direction please!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 4:56 am 
Newbie

Joined: Tue Sep 30, 2003 8:14 pm
Posts: 10
Location: Southern Cali.
Oh, and there are no inconsistent typos in my real mapping like I
put in my post...I'm required to very carefully guard my companies identity and activities (although I think it doesn't matter a bit for this).

My post mapping should have been:

<joined-subclass
name="com.somecompany.domain.persistenceobjects.someschema.SomeObject"
lazy="false"
table="SOMEOBJECT"
persister="com.somecompany.domain.persister.someschema.SomeObjectPersister"
>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 6:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Are you using a recent Hibernate version?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 4:53 pm 
Newbie

Joined: Tue Sep 30, 2003 8:14 pm
Posts: 10
Location: Southern Cali.
I'm using 2.0.3

I'll try upgrading...thanks for the idea! We just haven't had the resources to stay on top of things like that...

_________________
"Manual, what manual? Why would we want that?"


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

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.