toplink Questions
33
Solved
I have my persistence.xml with the same name using TopLink under the META-INF directory.
Then, I have my code calling it with:
EntityManagerFactory emfdb = Persistence.createEntityManagerFactory("...
Ferryman asked 21/7, 2009 at 9:29
12
Solved
I have an existing database of a film rental system. Each film has a has a rating attribute. In SQL they used a constraint to limit the allowed values of this attribute.
CONSTRAINT film_rating_che...
4
Solved
I have just started migrating my homegrown persistence framework to JPA.
Given that the persistence frameworks hide a lot of the plumbing, I'm interested in knowing if NOT closing EntityManagers w...
Evaluate asked 21/10, 2008 at 0:8
3
11
Solved
I'm new to JPA and I'm having problems with the autogeneration of primary key values.
I have the following entity:
package jpatest.entities;
import java.io.Serializable;
import javax.persistence...
5
Solved
I found some hint in Toplink
Query query = em.createQuery("SELECT e FROM Employee e ORDER BY e.lastName ASC, e.firstName ASC");
query.setHint("eclipselink.cursor.scrollable", true);
ScrollableCurs...
7
public class LoginTest {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("IRCBotPU");
EntityManager em = emf.createEntityManager();
e...
Servant asked 14/8, 2009 at 17:20
4
Solved
I am new in JPA and I have a problem when I try to query to the database using MAX() function.
Code of my function is following. Can anyone help me? Thank you.
public int getMaxId(){
entityManag...
6
Solved
7
Solved
I'm trying to build database application using GWT 1.5.3. I use JPA annotations with my objects. It seems in hosted mode GWT's RPC works fine. But when I try to compile my app using GWT-compiler I ...
1
Solved
Based on the answer from axtavt, this is almost certainly a naming problem between Notebean and NoteBean. Is there a particular convention to follow here, just normal CamelCase?
I believe that I'v...
Schapira asked 3/5, 2012 at 13:33
3
Solved
I am building REST web app using Netbean6.9.1 and JPA EclipseLink.
The issue I'm facing is even though my entity class MasatoTable is marked with Entity annotation, I get error:
(java.lang.Illeg...
Sphalerite asked 23/2, 2011 at 6:12
1
Solved
We're considering migrating to TopLink 11g JPA from Oracle Kodo JDO. But I see that EclipseLink exists and appears to be, perhaps, better thank Toplink. The wiki article on it currently states
E...
Hankypanky asked 8/7, 2010 at 19:21
3
Solved
I'm trying to do a cascading save on a large object graph using JPA. For example (my object graph is a little bigger but close enough):
@Entity
@Table(name="a")
public class A {
private long id;
...
Sorcim asked 23/6, 2010 at 22:56
4
I have a tomcat 6.0.20, apr 1.2, jdk 1.6.0_15 with mysql 5.1.38 running on a rhel box with 4 GB ram. There is one simple jsp/servlet application on it with 5 users, one struts 1.2.0.9 with 64 users...
2
In the following JPA query, the :fcIds named parameter needs to be a list of integer values:
@NamedQuery(name = "SortTypeNWD.findByFcIds", query = "SELECT s FROM SortTypeNWD s WHERE s.sortTypeNWDP...
2
Solved
As far as I know, JPA itself offers all the shiny features like ORM, JPQL, entity relations mapping and so on. But I don't really understand, why do people use Hibernate or Toplink on top of JPA.
...
3
Solved
I have made use of the following JPA implementations:
Hibernate,
Toplink,
OpenJPA
Each of them has their own strengths and weaknesses. I found Hibernate the most advanced of the three exc...
1
© 2022 - 2024 — McMap. All rights reserved.