Bug 27 : Custom ScalarType ...
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
0.9.3b
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
17/10/2007
Updated 
17/10/2007
Type 
Bug
 
Attachments 
No attachments

From Erwin...

after a small patch to your sources i got it working. i had to add to
CreateProperties.java:104

boolean isScalar = ScalarType.class.isAssignableFrom(propertyType);

and line 111 is now:
} else if (isPrimative || isByteArray || javaType || isScalar) {


thanks

 
Rob 22 Nov 19:51
Fixed in 0.9.3b

Fixed

Rob 04 Dec 10:52
... but maybe this is not quite right...

I wonder if this is correct... in that...

boolean isScalar = ScalarType.class.isAssignableFrom(propertyType);


... should really be...

ScalarType scalarType = typeManager.getScalarType(propertyType)
boolean isScalar = (scalarType != null);

... so I need to make typeManager available to the CreateProperties object...

woResponse

Upload a file