[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-1049) includePaths bombs on inclusion of id members
Marc Schipperheyn (JIRA)
noreply at atlassian.com
Wed Mar 28 12:16:48 EDT 2012
[ https://hibernate.onjira.com/browse/HSEARCH-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46103#comment-46103 ]
Marc Schipperheyn commented on HSEARCH-1049:
--------------------------------------------
Just wanted to touch base if an issue I ran into should become a new JIRA item. I ran into an issue and reviewed some scenario's of using id properties. Some of the scenario's I wasn't sure if what I got was to be expected and one scenario might be a real problem
Scenario's
Item: Specify an IndexedEmbedded with includePaths id property on a SubItem, no @Indexed on the SubItem - OK
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, no @Indexed on the SubItem, no @IndexedEmbedded on SubItem:SubSubItem - FAIL
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, no @Indexed on the SubItem, @IndexedEmbedded with depth=x on SubItem:SubSubItem - OK
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, no @Indexed on the SubItem, @IndexedEmbedded with includePaths with an id property on SubItem:SubSubItem - FAIL
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, @Indexed on the SubItem, @IndexedEmbedded with includePaths with an id property on SubItem:SubSubItem - FAIL
This last one is a problem because it basically means that if an Entity is part of a includePaths and is also a an Indexed Entity itself, it cannot includePaths with id properties itself
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, @Indexed on the SubItem, @IndexedEmbedded with includePaths with a normal property on SubItem:SubSubItem - OK
Item: Specify an IndexedEmbedded with includePaths id property on a SubSubItem of SubItem, no @Indexed on the SubItem, @IndexedEmbedded with includePaths with a normal property on SubItem:SubSubItem - OK
> includePaths bombs on inclusion of id members
> ---------------------------------------------
>
> Key: HSEARCH-1049
> URL: https://hibernate.onjira.com/browse/HSEARCH-1049
> Project: Hibernate Search
> Issue Type: Bug
> Components: engine
> Affects Versions: 4.1.0.Beta2
> Reporter: Marc Schipperheyn
> Assignee: Davide D'Alto
> Fix For: 4.1.0.CR3
>
>
> When I include id members on includePaths, I get
> Found invalid @IndexedEmbedded->paths configured on class nl.project.model.Item, member subitem: item.id
> I use ids a lot and in many cases they are all I'm interested in.
> E.g.
> @IndexedEmbedded(prefix="location.",includePaths={"city.id","city.city","country.id","city.region.id"})
> public Address getAddress() {
> return address;
> }
> will indicate all id fields as erronous.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list