[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-351?pag...
]
Jeromy Evans commented on HSEARCH-351:
--------------------------------------
To elaborate using the example below, in the current version (3.1.0.GA) the field
Contact.suburb is indexed (customer.contact.suburb) but the Contact's subclass'
fields are not indexed (Person.firstName, Organization.legalName).
It would be helpful if the current documentation stated that fields of subclasses of the
@IndexedEmbeddded entity are not embedded.
It would be very useful if this could be supported.
@Entity
@Indexed
class Customer {
@IndexedEmbedded
Contact contact;
}
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
class Contact {
@Field
String suburb;
}
@Entity
class Person extends Contact {
@Field
String firstName;
}
@Entity
class Organization extends Contact {
@Field
String legalName;
}
Index fields on subclasses of a field marked @IndexEmbedded
-----------------------------------------------------------
Key: HSEARCH-351
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-351
Project: Hibernate Search
Issue Type: Improvement
Affects Versions: 3.1.0.GA
Reporter: Dimas Guardado, Jr.
the fields of the subclasses of a property marked with @IndexedEmbedded are not getting
indexed, but the fields of the base class are. I discussed this issue previously on the
forums, and I was directed to file a JIRA issue for it. For more context and a code
example to illustrate the problem, please see the following forum thread:
http://forum.hibernate.org/viewtopic.php?p=2404209#2404209
--
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