[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-342) Delete on unindexed entities referenced by indexed entities with ContainedIn annotation failed
Grégoire Rolland (JIRA)
noreply at atlassian.com
Tue Jun 9 03:54:15 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33365#action_33365 ]
Grégoire Rolland commented on HSEARCH-342:
------------------------------------------
Hi Emmanuel,
Thank for your comment. But :
1/ Entity2 is not lacking @DocumentId, I read the doc again and again (my english is very poor, but ...) : "In fact since the 3.1.0 release of Hibernate Search @DocumentId is optional in the case where an @Id annotation exists."
2/ Entity2 is not lacking @IndexedEmbedded, see the "entity1" association.
3/ From Hibernate Entity Manager Doc : "In an EXTENDED persistence context, all read only operations of the entity manager can be executed outside a transaction (find(), getReference(), refresh(), and read queries). Some modifications operations can be executed outside a transaction, but they are queued until the persistence context join a transaction. This is the case of persist(), merge(), remove(). Some operations cannot be called outside a transaction: flush(), lock(), and update/delete queries.". This is the case of the attached test. I attach a second testcase with all the operation in a transaction, the result is the same.
4/ I check 3.1.1-GA, the problem occurs alway.
5/ Please read and run my testcase and if I misuse hibernate say me where.
> 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