Hi All,
I'm just 2 days new to Hibernate annotations. I've got the simple things working but my POJOs all implement Historizable interface (This is for HistoryInterceptor implementation)
For example, i've a class ApplicationRole that implements Historizable
My Historizable interface looks as follows:
Code:
public interface Historizable {
/**
* @return
*/
Set getHistoryEntries();
/**
* @param entries
*/
void setHistoryEntries(Set entries);
}
As ApplicationRole implements Historizable, i've provided implementation for these methods from Historizable interface. This class has an attribute
Set HistoryEntries
I'm not sure how should i write annotations for this???
I tried @OneToMany but what should be the targetEntity (please note that i'm NOT using generics)
Any input on how to do this is greatly appreciated.
Thanks in advance!