Filters defined on Embeddable classes are ignored
-------------------------------------------------
Key: HHH-5670
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5670
Project: Hibernate Core
Issue Type: Improvement
Components: core
Affects Versions: 3.6.0
Reporter: Frode Carlsen
If defining a class as Embeddable and defining any Filters on it, these are ignored.
It would be very useful to be able to define such filters once in relation to the
Embeddable, so that it could be reused elsewhere as a value object.
@Embeddable
@FilterDef(name = "history", parameters = { @ParamDef(name =
"effectiveTime", type = "timestamp") })
@Filters({ @Filter(name = "history", condition = ":effectiveTime between
effective_from and effective_until") })
public class EffectiveDate {
@Temporal(TIMESTAMP) Date effectiveFrom;
@Temporal(TIMESTAMP) Date effectiveUntil;
...
}
@Entity
public Class Address {
@Id
private Long id;
@Embedded
private EffectiveDate effective;
}
--
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