-->
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.  [ 2 posts ] 
Author Message
 Post subject: Abstract classes and hibernate
PostPosted: Thu Sep 11, 2003 4:06 pm 
Newbie

Joined: Sun Aug 31, 2003 8:49 am
Posts: 5
I have a situation where I think the best business object model makes use of an abstract base class. There are then two sub-classes of this class that will get persisted to a single table in the database.

I have set up Hibernate to be aware of the base class and it's two sub-classes. Everything appears to be operating as I would expect except I noticed the following output from Hibernate during initialization [names changed to protect the innocent]:

2003-09-11 15:59:40,140 [main] INFO net.sf.hibernate.util.ReflectHelper - reflection optimizer disabled for: com.mycompany.ols.bizobj.Foo, InstantiationError: com.mycompany.ols.bizobj.Foo

Considering this is an INFO message, Is this a reasonable thing to ignore?

I would be happy to NOT tell Hibernate about the base, but stlil have the same two classes map to a single table in a clean manner. Is this possible? Is it preferred?

Thanks in advance. This is really a fine product that I intend to evangelize.

Cheers,
-Andre'


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2003 11:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
ignore it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.