Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi pankaj, do you have any spring and hibernate real time project. If it’s there I will pay you
- Suresh
I am newbie in hibernate with spring and i am really thank you for this tutorial . I tested hibernate v3 with spring v4 and it works good , but when i changed it with hibernate v4 it gives to me this error >>> Exception in thread “main” java.lang.UnsupportedOperationException: The user must supply a JDBC connection at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:54) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473) at db.dao.EmployeeDAOImpl.saveEmployee(EmployeeDAOImpl.java:22) at db.main.SpringHibernateMain.main(SpringHibernateMain.java:23) i searched a lot about this error and cannot find any solution. thank you ^_^
- Muhammed AbdElFatah
Hello, I have couple question regarding to your post. 1. Why don’t you use Spring @Autowired in your DAO and why don’t use this instead? public void save(Person person) { this.sessionFactory.getCurrentSession().save(person); } Because I don’t know whether you use Transaction for any benefits? 2. Could you give more example if you create another class to wrap PersonDAOImpl to it gonna be like: @Service @Transactional(readOnly = true) public class PersonServiceImpl implements PersonService { @Autowired protected PersonDao personDao; public List getPersons() { return this.personDao.getAll(); } @Transactional(readOnly = false) public void save(Person person) { this.personDao.save(person); } } Because #2 don’t work for me, it said that I’ve configured more than 1 autowired? I’m new to hibernate 4 and Spring 4, so I need some answers for this updates. And also please bring it with your spring-config.xml in case mapping for this service class I assume would be better for hierarchical software achitecture. Thank you for your assistance.
- Ivan
in create table u say `Person` but in entity the table name is ‘PERSON’ its different and making error
- aditya
sir i want to create an application employee management i want to use STS Hibernate maven …can you help me out in this webapp
- Deevaker Bhatia
Hi Pankaj, Great tutorial for spring beginners. I just wanted to know if we could use oracle.jdbc.pool.OracleDataSource as a data source instead of org.apache.commons.dbcp.BasicDataSource. I am using oracle 10g xe. Thanks !!
- Biplab