[ http://jira.andromda.org/browse/HIB-154?page=comments#action_12611 ] 

Luiz Eduardo Guida Valmont commented on HIB-154:
------------------------------------------------

I forgot to mention that this exception is thrown when I try to create an 
instance of Pessoa.

I'm sorry about my forgeting this.

> Optimistic Locking - problem with version tag
> ---------------------------------------------
>
>          Key: HIB-154
>          URL: http://jira.andromda.org/browse/HIB-154
>      Project: Hibernate Cartridge
>         Type: Bug

>     Versions: 3.2-RC1
>     Reporter: Simon Gilligan
>     Assignee: Carlos Cuenca

>
> Setting the entity tag andromda.hibernate.version=test, generates this in the 
> hbm.xml: 
> <version name="version" type="int" column="version"/>
> 1.Both the property name and database column name are set the same. The 
> database column name should be uppercase:
> <version name="version" type="int" column="VERSION"/> so that on schema 
> generation, it matches the uppercase used elsewhere.
> 2.
> The column name should be separatly settable. This will allow (for example):
> <version name="version" type="int" column="OPT_LOCK_CONTROL"/>
> That is, the property name is different to the database column, which allows 
> mapping to an existing column.
> This was raised in this forum thread:
> http://galaxy.andromda.org/forum/viewtopic.php?t=1417

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Reply via email to