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

Generating DDL from entity class in intellij

Could you please let me know whether we have an option to generate ddl from entity class in intellij? I could do the entity class generation from the table? I am looking to change the definition of a entity class and i need to re-generate the DDL…
Adam
  • 727
  • 4
  • 11
  • 21
2
votes
1 answer

Unmarshalling JPA entity using JAXB

I'm having trouble in my JAX-RS service unmarshalling a JSON string back into my JPA entity with JAXB. Marshalling works and I get the following JSON string from the service: { "id":1, "items":[{ …
nibs
  • 171
  • 3
  • 8
2
votes
2 answers

EclipseLink MOXy: Suppress xsi:type when marshalling

I have a bindings file with the following content: ... When I marshall the JavaType class using this binding, the XML looks like…
hansi
  • 2,278
  • 6
  • 34
  • 42
2
votes
2 answers

JPA 2.0 How to handle deadlock (Eclipselink JPA2.0 MySQL)

I trying a code to add/get/update and I have used EclipseLink provider and JPA2.0. and MySQL. The below code is throwing an error saying a deadlock happened. The issue is happening randomly. I wanted to know how to handle deadlock. Here is the…
User12111111
  • 1,179
  • 1
  • 19
  • 41
2
votes
1 answer

eclipselink merge() without initial SELECT

I am trying to perform a merge(entity) using eclipselink, and I would like to indicate to eclipse if that will be an update or insert, so it does not have to perform the initial select query. Thanks to the progress made in this question, I have the…
Chris Riddell
  • 1,034
  • 7
  • 16
2
votes
2 answers

EclipseLink JAXB (MOXy) with One-to-Many relationship and java.util.Map

I am using EclipseLink JPA and JAXB (MOXy) to convert JPA entities to XML. For a normal one-to-many operation the system work fine but if this relationship is bidirectional and one of the entities has a composite id, uses a java.util.Map class, the…
2
votes
2 answers

Netbeans, JPA Entity Beans in seperate projects. Unknown entity bean class

I am working in Netbeans and have my entity beans and web services in separate projects. I include the entity beans in the web services project however the ApplicaitonConfig.java file keeps getting over written and removing the entries I make for…
Stu
  • 1,153
  • 2
  • 8
  • 16
2
votes
1 answer

JPA, NetBeans and Many to Many relationship to self

I'm having troubles with a table having a table having a many to many relationship to itself since a requirement can have multiple parents and multiple children. I basically created entities from database using NetBeans wizards and everything else…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
2
votes
2 answers

deployment of persistence unit failed close all factories

Much love for Ur good works, I'm having an issue with glassfish server 4 while deploying my ejb-jar. I have xampp installed so I'm using mysql from there. I'm also using netbeans. I created a data source for mysql using the connector/j driver, then…
APO
  • 51
  • 1
  • 4
2
votes
1 answer

Is there a way to update a primary key through EclipseLink?

I'm using JPA 2.0 provided by EclipseLink 2.3.2. I need to update a primary key in a database table (MySQL 5.6.11) which is quite unusual but it is needed at one place. Additional Information: In my case, I have two tables regarding JAAS security…
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
3 answers

JPA QueryException - A reference class must be provided

Using JPA 2.0, Java EE 5, Weblogic 10.3 (11g), JDK 6, EclipseLink. When i attempt to run this: CriteriaQuery _criteriaquery = EM.getCriteriaBuilder().createQuery(Clazz); Query query = EM.createQuery(_criteriaquery); return…
GabrielBB
  • 2,479
  • 1
  • 35
  • 49
2
votes
1 answer

Do JPA 2.1's Entity Graphs carry out/make redundant the functionality of EclipseLink's Fetch/Load Groups?

EclipseLink has extension functionality, namely fetch and load groups which allow finer control over the fetching and loading of data from a datastore in comparison to the standard JPA 2.0 capabilities. Now, in JPA 2.1, entity graphs seem to provide…
Kevin
  • 4,070
  • 4
  • 45
  • 67
2
votes
2 answers

Howto setup this SQL query with CriteriaBuilder?

to select an overview from a database I have to use a statement like this: select a1.begin, a1.end, b1.name, c1.name, d1.name, e1.name, f1.name, ... from a2, b1, b2, c1, c2, a1 left outer join (d1 join d2 on d2.id = d1.parent and d1.user = ?) on …
Hennes
  • 1,340
  • 1
  • 10
  • 26
2
votes
1 answer

JPA metamodel not recognized with Netbeans 7.4

I have a web application that is working fine under Netbeans 7.3. When I installed it on another computer with Netbeans 7.4, all references to the JPA metamodel are now undefined. The import statements referring to the metamodel (those ending with…
Pierre C
  • 2,920
  • 1
  • 35
  • 35
2
votes
1 answer

Criteria query cache caching in Eclipselink?

Iam using criteria queries with EclipseLink as JPA . I need to cache the query results based on their parameters . When I used query.setHint("eclipselink.QUERY_RESULTS_CACHE", "TRUE") it still fires query to the database. How can I use it in…
Achyut
  • 377
  • 1
  • 3
  • 17