I have the following 3 classes
Code:
@Inheritance(strategy= InheritanceType.JOINED)
@Indexed
class Role {
@DocumentId @Generated
Integer id;
}
@Indexed
class Admin extends Role {
}
@Indexed
class NoBody extends Role {
}
@Indexed
class User {
@IndexEmbedded
Set<Role> roles = new HashSet<Role>();
}
If i persist a User with some Roles only the Role.id will be available in the Lucene-Document as 'roles.id'.
How can the discriminator value (default: column DTYPE) be included in the User-Document e.g. roles.dtype: Admin, Nobody ??
Thanks
mj