是否可以声明一个类型
@????? // Embeddable?
class MyDate extends java.util.Date implements Serializable{
//.. lots of logic, but no new fields
}
并将其包含在映射中
class Person {
@????
MyDate birthdate;
}
我已经尝试过 Embeddable/Embedded 但我收到此错误消息
[junit] 7109 venses WARN [main] openjpa.MetaData - "birhtdate" declares a null indicator column ""birthdate_null"" whose JDBC type is not compatible with the expected type "integer".