Hibernate?

2011/6/9 Pavel Byles <[email protected]>

> 3.0-1.1.1
>
>
> On Thu, Jun 9, 2011 at 8:56 PM, Juan Pablo Gardella <
> [email protected]> wrote:
>
>> What implementation of JPA are you use?
>>
>> 2011/6/9 Pavel Byles <[email protected]>
>>
>>> anyone?
>>>
>>> On Wed, Jun 8, 2011 at 10:46 PM, Pavel Byles <[email protected]>wrote:
>>>
>>>> I'm getting the following error when I'm using requestfactory with
>>>> locators:
>>>>
>>>>
>>>> The persisted entity with id 152 has a null version
>>>>
>>>> I have a version column in my datastore and the following in my Entity:
>>>>
>>>>
>>>> public Integer getVersion() {
>>>>
>>>>   return this.version;
>>>>
>>>> }
>>>>
>>>>
>>>> public void setVersion(Integer version) {
>>>>
>>>>   this.version = version;
>>>>
>>>> }
>>>>
>>>> I also have this in my locator:
>>>>
>>>> @Override
>>>>
>>>> public Object getVersion(Country domainObject) {
>>>>
>>>>   return domainObject.getVersion();
>>>>
>>>> }
>>>>
>>>> If I return 1 all the time for getVersion, everything works fine.
>>>>
>>>> I have looked at all the examples I could but there aren't many and
>>>> tried to figure this out for a while. Things look right but doesn't seem to
>>>> work.
>>>>
>>>> Any ideas?
>>>>
>>>> --
>>>> -Pav
>>>>
>>>>
>>>
>>>
>>> --
>>> -Pav
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> -Pav
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to