How to insert data in a database in Meta UI Database Groovy Application?

34 views
Skip to first unread message

Rahul Sharma

unread,
Dec 20, 2014, 9:27:21 AM12/20/14
to arib...@googlegroups.com
I have created the sample project with Meta UI Database Groovy Application template. With reference to the following link, http://vimeo.com/2239096 I have added Project.groovy class and User.groovy class. 

It is working as expected. while creating user the values are getting saving.  Even editing is also working by inspecting the item. But If I build the app all the previously added values are getting disappeared. 

I wanted to conform where will the values are getting saved currently? 
What are the steps do I need to follow to use HSQLDB in my project? Because, I wanted to save data permanently.



  

Ronnie

unread,
Apr 28, 2015, 12:17:37 AM4/28/15
to arib...@googlegroups.com
in your project there is an ant build.xml file,in this file you can configure the database connection. just like this:
在此输入代码...
     
<property environment="env"/>
   
<property name="aw.home" location="/Users/rony/workspace/aribaweb-5.2"/>
   
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
   
<property name="hibernate.connection.url" value="jdbc:mysql://127.0.0.1/aribaweb" />
   
<property name="hibernate.connection.username" value="root" />
   
<property name="hibernate.connection.password" value="root" />
   
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
   
<import file="${aw.home}/tools/build-appcore-app.xml"/>



在 2014年12月20日星期六 UTC+8下午10:27:21,Rahul Sharma写道:
Reply all
Reply to author
Forward
0 new messages