[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-342) Delete on unindexed entities referenced by indexed entities with ContainedIn annotation failed

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu May 28 08:20:13 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33265#action_33265 ] 

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the hibernate-issues mailing list