Questions tagged [eclipselink]

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

5055 questions
2
votes
2 answers

Eclipselink and Spring 3.1

I have got Hibernate working but I am trying to change to Eclipselink. I have been searching for a solution for this but without result. People suggest putting these two(not together) no.mesta.driftslogg.model.Person
pethel
  • 5,397
  • 12
  • 55
  • 86
2
votes
1 answer

How to add a Map> in an entity class?

I would like to add a mapping like Map> attributes; I have used already @MapKeyColumn for other situation, but here I do have a key/value table where a key might occur several time. How would you solve this? Is there any (JPA…
Thomas
  • 8,357
  • 15
  • 45
  • 81
2
votes
1 answer

Why does EclipseLink think my database schema doesn't exist?

I'm working on a web project using EJB 3.0, and whenever EclipseLink tries to interact with the database, it says that the schema I'm using doesn't exist (which it does). I get a massive, unhelpful stack trace from GlassFish 2.1, which begins…
Nick
  • 2,827
  • 4
  • 29
  • 39
2
votes
1 answer

Eclipselink with RCP plugin and Derby database

I have an RCP application i made with eclipse indigo 3.7.2 and i want to communicate with a Derby database using eclipselink. But i cant make it to work. My problem is with eclipselink, i tried including the jars and also tried with the bundles.By…
ddarellis
  • 3,912
  • 3
  • 25
  • 53
2
votes
1 answer

orphan removal constraint violation

I am using EclipseLink and have the following entity classes (I tried to simplify the scenario as much as I could, but after any further simplification, the error does not occur): @Entity public class A { @Id @GeneratedValue private long…
Olsu
  • 93
  • 1
  • 5
2
votes
1 answer

Persist performance gradually decreasing

Given: Method in a @Stateless EJB, JTA Mysql data source and a list of about 5000 entities which I'm trying to persist in a cycle : List objList = entityManager.createNamedQuery("Q1", MyObj.class).getResultList(); for(MyObj obj : objList) { …
andbi
  • 4,426
  • 5
  • 45
  • 70
2
votes
3 answers

check EntityManagerFactory

I use eclipselink as an implementation of JPA and I would like to know if it is possible to check if my EntityManagerFactory is "alive" for example, if the connection parameters are invalid, when I create the EMF I don't have any exception until I…
Julien
  • 401
  • 1
  • 4
  • 9
2
votes
3 answers

Can I put a MAX value for the database table primary key?

Can I put a MAX value for the database table primary key, either via JPA or at the database level? If it is not possible, then I was thinking about Create a random key between 0-9999999999 (9999999999 is my MAX) Do a SELECT on the database with…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
1
vote
1 answer

Modify JPA schema at runtime with EclipseLink running on JBoss

I am new to JPA and JBoss, so sorry in advance if this is a stupid question. I have application running on JBoss using EclipseLink that retrieves entities from various databases based on a JPQL string. This is working great, except one database…
user1309663
  • 105
  • 7
1
vote
1 answer

JPA EclipseLink @ElementCollection join fetch via CriteriaQuery

I have an entity (Book) with an ElementCollection for a List property (tags). @Entity @Table(name = "BOOK") public class Book { @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "BOOK_TAGS", joinColumns = @JoinColumn(name =…
Brian Repko
  • 326
  • 2
  • 9
1
vote
2 answers

JPA java.lang.IllegalArgumentException: Object: [ id=XYZ ] is not a known entity type

I am faceing the following problem: when i run my programme i get the following exceptions: java.lang.IllegalArgumentException: Object: dviaufgabe1.MeinArtikel[ id=25 ] is not a known entity type. …
AliveAndWell
  • 11
  • 1
  • 2
1
vote
1 answer

Getting MOXy @XmlPath to Work with Namespace

I'm writing a script to parse a KML file using JAXB and MOXy, but I'm having difficulty getting @XmlPath to work with a provided namespace. If my KML looks like this:- Test ... and my…
limc
  • 39,366
  • 20
  • 100
  • 145
1
vote
1 answer

Unable to unmarshall XML using Jaxb and XMLPath

I have an XML which needs to be mapped to a Java object i.e. a DTO. My XML has some wrapper elements which don't have any java objects in my DTO.. my XML looks something like this
Sampath Pasupunuri
  • 628
  • 1
  • 13
  • 25
1
vote
1 answer

Diagnosing an EclipseLink connection delay?

I am using a GlassFish 3.1.2 server and my web application uses EclipseLink 3.1.2 as a JPA provider. GlassFish is running locally, the MySQL server is remote. The problem is that when I start my server the server hangs for a long time, with the…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
1
vote
1 answer

JPA2/EclipseLink OneToMany cascade persist issue "Referential integrity constraint violation"

I have two entities A and B: A.java: ... public class A implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "IDA", nullable =…
Stacker
  • 47
  • 2
  • 8
1 2 3
99
100