Re: [hibernate-dev] [HSearch] session.index / purge

2008-06-03 Thread Emmanuel Bernard
My concern is how we deal with non mapped subclasses. Not entirely sure that's the right way to do it. But provided we don't deal today with this case, the exception is a good choice. On Jun 3, 2008, at 17:28, Sanne Grinovero wrote: IMHO I vote for the Exception, as phil59 said on the fo

Re: [hibernate-dev] [HSearch] session.index / purge

2008-06-03 Thread Sanne Grinovero
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 drawbac

[hibernate-dev] [HSearch] session.index / purge

2008-06-03 Thread Emmanuel Bernard
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 mailin