-->
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: @org.hibernate.annotations.Entity used on a non root entity
PostPosted: Mon Jun 08, 2009 11:31 am 
Newbie

Joined: Sat Jun 06, 2009 7:55 am
Posts: 3
Hi again.

I want to enable dynamic updates for subclasses, but hibernate prints the following warning on server startup:

Quote:
2009-06-08 17:25:44,209 org.hibernate.cfg.annotations.EntityBinder main
WARN: @org.hibernate.annotations.Entity used on a non root entity: ignored for com.something.widgets.SomeWidget


However, dynamic updates work as expected. Omitting the @org.hibernate.annotations.Entity annotation disables dynamic update, so Hibernate does not ignore it, even if it says that.

Any idea what's the problem here?


Related code:

Code:
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Proxy
public abstract class Widget {
   ...
}

Code:
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@PrimaryKeyJoinColumn(name = "widgetId")
@Proxy
public class SomeWidget extends Widget {
   ...
}


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.