I've seen few sample on internet that checks whether the transaction is currently active at the beginning of the process.
The code below which is mine get EntityManager from the factory.
I can't figure why would one need to check whether the…
EDIT: Solved, but I don't know what was different now. If anyone can explain what happened differently, I'd appreciate it.
The way it's working now is by merging only the Parent, not the Child at all, like so:
Parent parent =…
Could you please explain to me how to add a standalone c3pO or DBCP connection pool to my toplink-based JPA project?
I have a persistence.xml file, and everytime I want to query the database, I'm doing this:
EntityManagerFactory emf =…
I've got an exception when I generate this EJB SQL Statement.
Exception Description: Syntax error parsing the query [SELECT h FROM Busmodul h WHERE LOWER(h.modulNummer) LIKE :modulnummer AND h.einbauort.id = :einbauort_fk AND h.plattform.id =…
How is it possible?
We are executing EJBQL on Toplink(DB is Oracle) and query.getResultList is empty.
But!
When i switched log level to FINE and received Sql query, that TopLink generates, i tried to execute this query on database and (miracle!) i…
I've took care of the migration from GlassFish 2 to GlassFish Payara for an application that uses toplink.
While the application was running on GlassFish 2 the dependency for toplink was written in the pom file like this:
…
I have just started studying Spring framework. My current goal is to access database from my bean through JPA (TopLink** provider) on Geronimo server. But I can't overcome the problem of getting entityManagerFactory.
The exception I…
For glassfish v2, I have searched through the web and I cannot find anyway to specify query timeout when using TopLink essential query hint. We have another option to migrate to EclipseLink but that is not feasible.
have tried the solution…
When i am trying to deploy the product in jboss 5.
I am using toplink-essentials for the JPA 1.0.
This product is running successfully on tomcat 6.
But in jboss it is showing errors.
I am trying to deploy the product through Eclipse IDE.
Error…
I am trying to deploy the product in JBOSS AS 5.1.0 GA using eclipse in Linux.
Previously it was executed successfully on tomcat 6.
While deploying I got many errors. I had solved one by one.
But now ClassNotFoundException raised due to the…
I have a situation where I have a tree of Entities, and a Session Bean. The Session Bean simply persists or merges the entities, and the method in question is marked as @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW).
Now in the case…
I have 1 entity call Item in which I want to be able to link parent items to children. to use a join table to create a parent/child relationship. I haven't been able to get any good documentation on. So if anyone has any thoughts I'm all…
I am using MySQL as DB, and Toplink essential as persistence layer.
There is a column, that I used to update regularly. But am always getting the value the value that was there at instance of START of the server.
But I restart the server, then only,…
Greetings,
As of now I had accomplished building a single-table JPA.
But when going to one-to-one or one-to-many. Things get complicated.
Especially when it comes to queries with parameters.
I always get an exception on a named-query
Exception…