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 <[EMAIL PROTECTED]> 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.
>
>

Reply via email to