[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-342?pag...
]
Emmanuel Bernard commented on HSEARCH-342:
------------------------------------------
Hi Grégoire,
I did not run your test case, as I think Entity2 is lacking @DocumentId, @IndexedEmbedded
etc
But I am almost certain that you are hitting HSEARCH-178
HSEARCH-178 is not a bug per se but rather a misuse of Hibernate. You must run your
operations inside a transaction otherwise it's like having wild sex wo condom,
you're on your own. Anyway, we made it a bit safer with HSEARCH-178
I'll mark this bug as duplicate. Please check with 3.1.1 or what's in trunk now.
Delete on unindexed entities referenced by indexed entities with
ContainedIn annotation failed
----------------------------------------------------------------------------------------------
Key: HSEARCH-342
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-342
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.1.0.GA
Environment: Hibernate 3.3.1.GA, PostgreSQL 8.3
Reporter: Grégoire Rolland
Priority: Blocker
Fix For: 3.1.1
Attachments: hsearch_jira.zip
Delete on unindexed entities referenced by indexed entities with ContainedIn annotation
failed.
On PostCommit Transaction, I get a LazyInitializationException on the collection with the
ContainedIn annotation.
I upload a test case to reproduce this, run the Boot class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira