Questions tagged [toplink-essentials]

The Java Persistence API Implementation at GlassFish

For more info, see the official TopLink site

46 questions
2
votes
1 answer

JPA Toplink - what is the need of checking active transaction in the beginning of process?

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…
Meow
  • 18,371
  • 52
  • 136
  • 180
2
votes
1 answer

JPA IndirectSet changes not reflected in Spring frontend

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 =…
Jon
  • 1,249
  • 1
  • 10
  • 21
2
votes
2 answers

How to add c3p0 or DBCP Connection pool?

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 =…
Jean N.T.
  • 73
  • 1
  • 5
2
votes
2 answers

Toplink Exception, what's wrong?

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 =…
java_dude
  • 25
  • 4
1
vote
6 answers

Toplink bug. Empty result for valid sql with not empty result

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…
Sergey Vedernikov
  • 7,609
  • 2
  • 25
  • 27
1
vote
1 answer

Toplink batch reading

IS their any way to set property like hibernate 'hibernate.batch_size' in toplink. which will increase fetching query performance.
1
vote
0 answers

Oracle Toplink not working on Payara App Server

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:
Alina Blaj
  • 11
  • 2
1
vote
1 answer

Failed to retrieve "entityManagerFactory" using Geronimo

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…
Denis
  • 1,130
  • 3
  • 17
  • 32
1
vote
1 answer

specify query timeout when using toplink essential query hint

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…
yhzs8
  • 11
  • 2
1
vote
2 answers

predeploy for PersistenceUnit failed in JBOSS with toplink essentials

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…
SRIHARIRAO M
  • 103
  • 1
  • 18
1
vote
1 answer

PersistenceProvider not found Exception in JBOSS AS 5.1.0 GA

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…
1
vote
1 answer

EJB3/DB2 Transactions not rolling back

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…
Anthony Roy
  • 1,835
  • 3
  • 15
  • 16
1
vote
3 answers

JPA Self Join using JoinTable

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…
jtoepfer
  • 315
  • 1
  • 2
  • 15
0
votes
1 answer

Getting old values from database, even after update?

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,…
Ashish Agarwal
  • 6,215
  • 12
  • 58
  • 91
0
votes
1 answer

JPA TopLink Help!

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…
Cyril Horad
  • 1,555
  • 3
  • 23
  • 35