[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-438?pag...
]
Sanne Grinovero commented on HSEARCH-438:
-----------------------------------------
hi, yes as you suggested on the forums the starting point for this code would be the
DocumentBuilder implementations, in particular
org.hibernate.search.engine.DocumentBuilderIndexedEntity. I'm not sure about package
names on .Net, I hope you can find it. (how old is the .net implementation? still
maintained current with all latest improvements from the Java version?)
The metadata (name of an instance variable) is now built by scanning the annotations on
the type itself, which results and reading recursively on the types. so it's about
static mapping. I guess the hard part is to find all extending types while this scanning
happens, so to build instead a set of alternative mappings being used according to the
runtime type, and then use this runtime type instead of the static type.
Support runtime polymorphism on associations (instead of defining the
indexed properties based on the returned type)
--------------------------------------------------------------------------------------------------------------------
Key: HSEARCH-438
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-438
Project: Hibernate Search
Issue Type: New Feature
Components: engine
Affects Versions: 3.1.1.GA
Environment: Jboss 4.2.3.GA
Hibernate Core 3.2
Hibernate Search 3.1.1.GA
Reporter: Ted Williams
Attachments: Classes.zip, Classes.zip
When using @IndexedEmbedded on a set/list of parent/top classes the @Field annotations in
the child classes are not picked up and indexed.
@IndexedEmbedded(depth=100)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "top", cascade =
CascadeType.ALL)
public Set<Parent> getParents() {
return parents;
}
public class Child extends Parent {
private String childName;
@Field(name = "childName", index=Index.TOKENIZED) // This field is not picked
up!!!
.
.
}
--
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