Index fields on subclasses of a field marked @IndexEmbedded

Description

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

Activity

Show:

Jeromy Evans June 25, 2009 at 1:29 AM

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;
}

Duplicate

Details

Assignee

Reporter

Priority

Created March 20, 2009 at 11:14 PM
Updated July 1, 2010 at 12:42 PM
Resolved April 8, 2010 at 4:57 PM