public class CheckCardPageQueries {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[]{"com/vst/snippets/snippetsContext-hibernate.xml"});
final BuildingObjectDao buildingDao =
(BuildingObjectDao) context.getBean("buildingObjectDao");
final ObjectConstructionDao ocDao =
(ObjectConstructionDao) context.getBean("objectConstructionDao");
final ConstructionExampleDao csamplesDao =
(ConstructionExampleDao) context.getBean("constructionExampleDao");
final QuestionDao questionDao =
(QuestionDao) context.getBean("questionDao");
PlatformTransactionManager txManager =
(PlatformTransactionManager) context.getBean("txManager");
new TransactionTemplate(txManager).execute(new TransactionCallback() {
@Override
public Object doInTransaction(TransactionStatus arg0) {
long start = System.currentTimeMillis();
// BuildingObject bo =
// buildingDao.getBuildingObject(new Long("4321"));
BuildingObject bo =
buildingDao.getBuildingObjectForList(new Integer("4321"));
bo.setOrganozationPhone(""+System.currentTimeMillis());
buildingDao.updateBuildingObjectByMainForm(bo.getObjectId(), bo);
//buildingDao.savePreparedDocumentationQuestions(new Long("4346"));
//questionDao.hasHint("123");
//ocDao.getObjectConstructionImage(new Long("3472"), "eskiz");