openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick" <mik...@apache.org>
Subject Re: @ExternalValues with a byte.
Date Thu, 16 Aug 2007 19:36:54 GMT
Hi Jesse,

OpenJPA relies on the java.lang.Byte class to convert the string to a byte.
So the valid values are anything that Byte.parseByte("someString") can
handle.

Per the javadoc the method is expecting every character to be a decimal
digit, or - for the first character. Ie "7" will work but "0x07" won't.

-Mike

On 8/16/07, Jesse Benson <jpbenson4849@winona.edu> wrote:
>
>
> Hello,
>
> I was wondering how to specify a byte when using @ExternalValues.  What
> would the format of the ???? be in the example below:
>
> @ExternalValues({"BEL=?????"}) //0x07
> @Type(byte.class)
> private String bell = "BEL";
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/%40ExternalValues-with-a-byte.-tf4280481.html#a12183966
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message