My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ru.intr13.example.springTransactionalTest;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
new String[] { "applicationContext.xml" }, true);
DataDao dataDao = (DataDao) context.getBean("dataDao");
Data data1 = new Data("one");
dataDao.save(data1);
Data data2 = new Data("two");
dataDao.save(data2);
Data data3 = new Data("three");
dataDao.save(data3);
System.out.println(dataDao.find("%o%").size());
dataDao.shutdown();
}

}

Change log

r16 by kiselev on Sep 12, 2009   Diff
[No log message]
Go to: 

Older revisions

r15 by kiselev on Sep 11, 2009   Diff
add store memory db to file
r11 by kiselev on Sep 10, 2009   Diff
Share project
"springTransactionalTest" into "https:
//intr13-examples.googlecode.com/svn"
All revisions of this file

File info

Size: 648 bytes, 21 lines

File properties

svn:mime-type
text/plain
Powered by Google Project Hosting