Spring Roo mangaged entities: dissable optimistic locking

Do someone know how to disable optimistic locking in Spring Roo managed entities? I generated entity annotated as follows:

public class CoolDomain {

However when I'm starting the app it fails to wire entity manager saying:

Caused by: org.hibernate.HibernateException: Missing column: version in COOL_DOMAIN
    at org.hibernate.mapping.Table.validateColumns(Table.java:369)
    at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1275)
    at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:155)
    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:506)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750)
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
    ... 51 more 


To avoid version check I added versionField="" property to @RooJpaActiveRecord annotation. This resolved the issue:

public class CoolDomain {

Need Your Help

Double links in database created by title

php mysql forms seo hyperlink

I have problem with double links in mydatabase.

Don't work onClick xml ? Android

android android-xml

I have an xml that handle onclick in xml the onClick of Button working but onClick TextView don't work.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.