@@ -47,10 +47,10 @@ public class Property<ENTITY> implements Serializable {
47
47
public final boolean isId ;
48
48
public final boolean isVirtual ;
49
49
public final String dbName ;
50
- public final Class <? extends PropertyConverter > converterClass ;
50
+ public final Class <? extends PropertyConverter <?, ?> > converterClass ;
51
51
52
52
/** Type, which is converted to a type supported by the DB. */
53
- public final Class customType ;
53
+ public final Class <?> customType ;
54
54
55
55
// TODO verified state should be per DB -> move to BoxStore/Box.
56
56
// Also, this should make the Property class truly @Immutable.
@@ -69,15 +69,15 @@ public Property(EntityInfo<ENTITY> entity, int ordinal, int id, Class<?> type, S
69
69
this (entity , ordinal , id , type , name , isId , dbName , null , null );
70
70
}
71
71
72
- public Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <? > type , String name , boolean isId ,
73
- @ Nullable String dbName , @ Nullable Class <? extends PropertyConverter > converterClass ,
74
- @ Nullable Class customType ) {
72
+ public < P , D > Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <D > type , String name , boolean isId ,
73
+ @ Nullable String dbName , @ Nullable Class <? extends PropertyConverter < P , D > > converterClass ,
74
+ @ Nullable Class < P > customType ) {
75
75
this (entity , ordinal , id , type , name , isId , false , dbName , converterClass , customType );
76
76
}
77
77
78
- public Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <? > type , String name , boolean isId ,
78
+ public < P , D > Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <D > type , String name , boolean isId ,
79
79
boolean isVirtual , @ Nullable String dbName ,
80
- @ Nullable Class <? extends PropertyConverter > converterClass , @ Nullable Class customType ) {
80
+ @ Nullable Class <? extends PropertyConverter < P , D >> converterClass , @ Nullable Class < P > customType ) {
81
81
this .entity = entity ;
82
82
this .ordinal = ordinal ;
83
83
this .id = id ;
0 commit comments