@@ -59,7 +59,8 @@ public class Property<ENTITY> implements Serializable {
59
59
public final boolean isId ;
60
60
public final boolean isVirtual ;
61
61
public final String dbName ;
62
- public final Class <? extends PropertyConverter <?, ?>> converterClass ;
62
+ @ SuppressWarnings ("rawtypes" ) // Use raw type of PropertyConverter to allow users to supply a generic implementation.
63
+ public final Class <? extends PropertyConverter > converterClass ;
63
64
64
65
/** Type, which is converted to a type supported by the DB. */
65
66
public final Class <?> customType ;
@@ -81,16 +82,17 @@ public Property(EntityInfo<ENTITY> entity, int ordinal, int id, Class<?> type, S
81
82
this (entity , ordinal , id , type , name , isId , dbName , null , null );
82
83
}
83
84
84
- // Note: types of PropertyConverter might not exactly match type and customtype, e.g. if using generics like List.class .
85
+ @ SuppressWarnings ( "rawtypes" ) // Use raw type of PropertyConverter to allow users to supply a generic implementation .
85
86
public Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <?> type , String name , boolean isId ,
86
- @ Nullable String dbName , @ Nullable Class <? extends PropertyConverter <?, ?> > converterClass ,
87
+ @ Nullable String dbName , @ Nullable Class <? extends PropertyConverter > converterClass ,
87
88
@ Nullable Class <?> customType ) {
88
89
this (entity , ordinal , id , type , name , isId , false , dbName , converterClass , customType );
89
90
}
90
91
92
+ @ SuppressWarnings ("rawtypes" ) // Use raw type of PropertyConverter to allow users to supply a generic implementation.
91
93
public Property (EntityInfo <ENTITY > entity , int ordinal , int id , Class <?> type , String name , boolean isId ,
92
94
boolean isVirtual , @ Nullable String dbName ,
93
- @ Nullable Class <? extends PropertyConverter <?, ?> > converterClass , @ Nullable Class <?> customType ) {
95
+ @ Nullable Class <? extends PropertyConverter > converterClass , @ Nullable Class <?> customType ) {
94
96
this .entity = entity ;
95
97
this .ordinal = ordinal ;
96
98
this .id = id ;
0 commit comments