-
1. Re: AuditEntity.property ClassCastException
adamw Dec 8, 2010 11:02 AM (in response to vipavel)AuditEntity.id() should work fine - doesn't it? It is equivalent to "originalId.id". So if you must use the second approach, try writing "originalId.id". "originalId" by itself is a composite key containing the entity id and the revision number.
Adam
-
2. Re: AuditEntity.property ClassCastException
vipavel Dec 9, 2010 3:07 AM (in response to adamw)AuditEntity.id() works. But the "originalId" is a member of my entity. I would like to search for the revisions of all entities that have the same value in this filed. Should it be something like that:
.add(AuditEntity.property("MyClass.originalId").eq(id))
or the member "originalId" becomes composite key that contains id, REV?
-
3. Re: AuditEntity.property ClassCastException
adamw Dec 9, 2010 4:41 PM (in response to vipavel)Heh that's a thing I may have overlooked - calling a property originalId. In fact I don't know why I didn't name it with some underscores in the front . I don't have much ideas on how to bypass this right now ... except for renaming the field.
Please create a JIRA, maybe a rename of the synthetic id (e.g. originalId => __originalId) will be needed.
Adam
-
4. Re: AuditEntity.property ClassCastException
vipavel Dec 12, 2010 3:12 AM (in response to adamw)I'm glad that I haven't committed the field name yet ))) I will give it a different name
Anyway, what is the JIRA's link?
Pavel