Hi Paul,
On Thu, Oct 13, 2011 at 7:18 PM, Paul Libbrecht <[email protected]> wrote:
>
> hello XWiki experts,
>
> I have an object property that's of type number.
>
> I have not been able to find the type of a variable x so that:
>
> doc.getObject("Space.Class").set("amountr", x)
> doc.save()
>
> works without a hibernate error.
> I tried float or integer "sub-type" of number.
>
> What should I put?
The Number class property type has a meta property called "Number
type" which is set to one of {integer, long, float, double}. Maybe you
should check its value.
Hope this helps,
Marius
> I tried with x=new Float(1.0f) but failed.
>
> thanks for hints.
>
> paul
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users