hibernate annotation与范型的有关问题
hibernate annotation与范型的问题
创建一个CTime的class
请教,我怎么使用hibernate annotation映射CTimeRange中的start属性
在这儿start是范型.
我查了半天资料,还是没有找到,
似乎hibernate annotation现在还不支持泛型
需要@TypeOverride吧
创建一个CTime的class
class CTime{ ... } class CBaseRange<T>{ protected T start; protected T end; .... } class CTimeRange<CTime>{ ... } class CTimeUserType implements UserType{ ... }
请教,我怎么使用hibernate annotation映射CTimeRange中的start属性
在这儿start是范型.
我查了半天资料,还是没有找到,
似乎hibernate annotation现在还不支持泛型
需要@TypeOverride吧