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

how to disable cache in eclipselink

I have tried disabling L2 cache in EclipseLink with Eclipse indigo by using following properties in persistence.xml:- NONE Basically I am…
Manish
  • 21
  • 1
  • 4
2
votes
5 answers

Fetch dates (by month or year) stored in TIMESTAMP using JPA

I am facing a problem and I would like you to help me. It turns out I have one table in my Oracle 11g database where I store failures of one electronic device. The table definition is following: CREATE TABLE failure ( failure_id NUMERIC NOT NULL ,…
Spacemonkey
  • 1,725
  • 3
  • 20
  • 44
2
votes
2 answers

How do I update multiple tables inside a named query?

I am using Eclipselink v2.3.3 I am getting this error Error compiling the query [Credential.updateExistingCredentialNoPW: UPDATE Credential c SET c.active = :active, c.employee.address.streetAddress = :stadd, c.employee.address.city = :city,…
ltlynx
  • 51
  • 1
  • 10
2
votes
2 answers

Camel-case column-names: Howto generate a sql column with underscore in EclipseLink like Hibernates ImprovedNamingStrategy does

I'm moving from Hibernate to EclipseLink. What I realized is, that Hibernates ddl-generation creates underscore-separated sql-columns for camel-case columns with
user871611
  • 3,307
  • 7
  • 51
  • 73
2
votes
1 answer

Eclipse link database change notification

I have a java/j2ee application displaying data on UI connected to a Oracle database using Eclipse link. I want the database to push data back to the UI in case of any changes. Could I do a push change notification natively in eclipse link without my…
Vinit Asher
  • 301
  • 1
  • 3
  • 18
2
votes
3 answers

Spring Glassfish does not persist

I use Spring 3.0.6, GlassFish 3.1, EJB 3, JPA 2 and my provider is EclipseLink (JPA 2.0) My webApplication has these configuration files: persistence.xml:
Canis Majoris
  • 1,016
  • 1
  • 7
  • 18
2
votes
1 answer

Why EntityManager createNativeQuery lists sometimes return a BigDecimal and other times an Integer?

This was baffling me a lot. I just figure out what was happening, but I'm going to ask and answer my own question for documentation in case it helps someone else. I have the following code: MyClass.java public List
Snekse
  • 15,474
  • 10
  • 62
  • 77
2
votes
2 answers

'org.hibernate.SessionFactory' needed for web project with eclipselink

I'm having trouble creating a dynamic web project within eclipse to include eclipselink implementation. When I ckeck the JPA checkbox under the Project Facets, choose EclipseLink 2.4.x as Platform and select the library EclipseLink 2.4.0- Juno that…
Eric C.
  • 3,310
  • 2
  • 22
  • 29
2
votes
2 answers

Specify NullConstraint on Entity Table using eclipselink

To specify a UniqueConstraint on multiple columns, i use the @Table annotation and specify the value for uniqueConstraint. I would also like to add a null constraint based on this scenario: @Entity public class Contact{ private PhoneBook…
maress
  • 3,533
  • 1
  • 19
  • 37
2
votes
1 answer

In MOXy unable to merge element if element contains a child an an attribute

This is my Xml output Пётр Ильич Чайковский Пётр Ильич Чайковский
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
2
votes
1 answer

standalone value does not appear in xml generated by moxy - jaxb

I have a xml file generated using moxy implementation of jaxb. However standalone value does not appear in the xml document.
Anand B
  • 2,997
  • 11
  • 34
  • 55
2
votes
2 answers

How to have a @OneToMany relationship with its own entity?

I have items that can contain further items, therefore I need a @OneToMany relationship with the same Entity. I have configured my field like this: @ManyToOne(targetEntity=PersistentItem.class, fetch=FetchType.EAGER) @JoinColumn(name="ID_CHILDREN",…
Leonard Ehrenfried
  • 1,573
  • 3
  • 20
  • 34
2
votes
1 answer

Can't get Eclipselink level 2 cache to work

I have a minimal web app that you can download here (6Kb): http://www.mediafire.com/?6vo1tc141t65r1g the relevant config is : -eclipselink 2.3.2 -server is tomee 1.0 (but glassfish 3.1 is the same) When I hit the page and press F5 to refresh…
Manu de Hanoi
  • 272
  • 3
  • 14
2
votes
1 answer

Generate JSON output using MOXy JAXB in Spring

I have a requirement to marshal both json and xml outputs. But, how to generate JSON output using MOXy JAXB in Spring? I can generate the xml file as shown in the example at:…
Ngun
  • 75
  • 1
  • 3
  • 5
2
votes
1 answer

Equinox OSGi + JPA Eclipselink + PAX JDBC driver adapter

After many problems with "CLASS NOT FOUND" problems in OSGi working with JPA persistence & Eclipse link, I found some article introducing PAX JDBC driver adapter. Does anybody has some experience with this ?
To Kra
  • 3,344
  • 3
  • 38
  • 45