Added TODO

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/information-system-model@129900 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-07-04 17:07:13 +00:00
parent 16af336db6
commit 417d5fafb8
1 changed files with 6 additions and 0 deletions

View File

@ -134,11 +134,17 @@ public class TypeBinder {
logger.trace("Looking for property type type {}", method.getReturnType());
Class<?> type = method.getReturnType();
property.type = OType.EMBEDDED.getIntValue();
if(Embedded.class.isAssignableFrom(type)){
property.linkedClass = getStaticStringFieldByName(type, NAME, type.getSimpleName());
property.type = OType.EMBEDDED.getIntValue();
}else if (Type.getTypeByClass(type)!=null) {
property.type = Type.getTypeByClass(type).getIntValue();
if(property.type > 9){
// TODO
// Get List/Set/Map generic arguments can be LinkedType or LinkedClass
}
} else {
throw new RuntimeException("Type " + type.getSimpleName() + " not reconized");
}