[hibernate-dev] [HSearch] session.index / purge
Sanne Grinovero
sanne.grinovero at gmail.com
Tue Jun 3 17:28:42 EDT 2008
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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
More information about the hibernate-dev
mailing list