-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Synchronizing HSQLDB with my Pojos
PostPosted: Thu May 15, 2008 4:22 am 
Newbie

Joined: Thu May 15, 2008 3:51 am
Posts: 2
Hello ,

I'm using HSQLDB(1.8.0.9) with hibernate & Annotations to create a desktop application.
After generating the db, and finishing my program, i discovered that i forgot to set a field in a table to be unique, so i did this in its corresponding Pojo :


Code:
@Column(nullable = false, unique = true)
   private String name;


But when i ran my program, the changes were not applied automatically to the db.
This means that i have to edit the db script file manually.

Is there any other way to apply such a change using code ?

Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.