I am learning JPA w/Hibernate using a Java SE 6 proje开发者_如何学运维ct. I\'d simply like to be able to detect if the connection between Hibernate and my database (MS SQL Server) is open. For example
I\'m writing my first Java EE (EJB + Servlets etc.) application (please note: I\'m using Eclipse). I\'m stuck with a problem with EntityManager injection not working, and having some difficulties find
As it currently stands, this question is not a good fit for our Q&A format. We expect开发者_如何学Python answers to be supported by facts, references,or expertise, but this question will likel
On my way in understanding the transaction-type attribute of persistence.xml, i came across an issue / discrepency between hibernate-core and JPA-hibernate which looks weird.
I\'m trying to execute a long \'INSERT ON DUPLICATE KEY UPDATE\' with up to a few thousand rows in a MySQL+JBoss+Hibernate application. It looks something like:
I\'m observing a very strange behaviour with an entity class and loading an object of this class whith JPA (hibernate entitymanager 3.3.1.ga). The Class has a (embedded) field, that is initialized in
JBOSS 5.1 / EJB 3 / JPA / MySQL For development we specify \"hibernate.hbm2ddl.auto\" as \"update\". This is done in several persistence.xml files embedded in several jars in an 开发者_StackOverflow中
Assuming I have an object Person with long id String firstName String lastName String address Then I\'m generating a Person-object somewhere in my application. Now I\'d like to check if the person
I\'m on a project that uses the EclipseLink implementation of JPA to talk to a PostgreSQL database.I have a task for which PostgreSQL NOTIFY/LISTEN seems like a perfect fit.Unfortunately, I\'m a JPA n
I get the following error when attempting to persist an object: java.lang.IllegalStateException:During synchronization a new object was found through a relationship that was not marked cascade PERSI