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 {
...
}