【发布时间】:2012-08-13 22:39:13
【问题描述】:
是否可以声明类型
@????? // Embeddable?
class MyDate extends java.util.Date implements Serializable{
//.. lots of logic, but no new fields
}
并将其包含在映射中
class Person {
@????
MyDate birthdate;
}
我尝试过嵌入/嵌入,但收到此错误消息
[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".
【问题讨论】:
-
我认为你的问题的答案不会解决你的问题。
-
我真的不明白这个问题。 "@????" 是什么意思什么意思?
-
对我来说看起来像是一个半指定的注释占位符。