IMHO I vote for the Exception,
as phil59 said on the forum it is quite likely a "fairly common for newbie"
problem and it clearly is a mistake to either forget the @Indexed
or giving the wrong entity to index/purge.
A loud exception can save some hours of headache.
I couldn't think of some drawback, anyone?
2008/6/3 Emmanuel Bernard <emmanuel(a)hibernate.org>:
When a non @Indexed entity is passed to session.index or
session.purge, we
simply ignore it (even if the superclass is indexed).
Should we raise an exception instead?
http://forum.hibernate.org/viewtopic.php?p=2384774#2384774
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev