Alguém sabe o porque desse erro
java.lang.UnsupportedOperationException: The user must
supply a JDBC connection
at
net.sf.hibernate.connection.UserSuppliedConnectionProvid
er.getConnection(UserSuppliedConnectionProvider.java:32)
at
net.sf.hibernate.impl.BatcherImpl.openConnection
(BatcherImpl.java:278)
at net.sf.hibernate.impl.SessionImpl.connect
(SessionImpl.java:3302)
at net.sf.hibernate.impl.SessionImpl.connection
(SessionImpl.java:3282)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement
(BatcherImpl.java:61)
at
net.sf.hibernate.impl.BatcherImpl.prepareStatement
(BatcherImpl.java:56)
at
net.sf.hibernate.impl.BatcherImpl.prepareBatchStatement
(BatcherImpl.java:109)
at
net.sf.hibernate.persister.EntityPersister.insert
(EntityPersister.java:460)
at
net.sf.hibernate.persister.EntityPersister.insert
(EntityPersister.java:442)
at
net.sf.hibernate.impl.ScheduledInsertion.execute
(ScheduledInsertion.java:29)
at net.sf.hibernate.impl.SessionImpl.executeAll
(SessionImpl.java:2414)
at net.sf.hibernate.impl.SessionImpl.execute
(SessionImpl.java:2367)
at net.sf.hibernate.impl.SessionImpl.flush
(SessionImpl.java:2236)
at doug.AmigosDAO.insere(AmigosDAO.java:17)
at doug.AmigosDAO.main(AmigosDAO.java:29)
Exception in thread “main”
Abraços a todos…