[hibernate-dev] [Search] proposing an alternative to depth in @IndexedEmbedded

Hardy Ferentschik hardy at hibernate.org
Fri Aug 26 04:15:15 EDT 2011


> @IndexedEmbedded(depth = 1, paths={"livingAddress.countryCode",
> "bornPlace.countryCode"})
> private Person ownedBy

I think leaving out the excludes is a good idea and specifying paths as  
strings seems to be e easier option. However, I still would make it a new  
annotation (@IndexPaths) or add the enum I mentioned. If we skip the  
excludes there is also no conflict adding it.


-- hardy



More information about the hibernate-dev mailing list