Well I am a newbie and as far as I know I cannot have a class that describes an entity and where instances are used as Embedded data.
Why this specification?
I have precisely the case :
Code:
@Entity
class Data {
//members
}
@Entity
class DataHistory {
// information about deprecation
@Embedded
private Data deprecatedData ;
}
Here you just cannot use a OnetoOne relationship: deprecated data
should not lay in the same table as viable data!
Do I have to copy everything from Data into DataHistory? (I hate the idea ....)
thanks for any suggestion.