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

JPA Criteria API: how to dump a human-readable representation for Predicates

How can I create a (human readable) string representation of Predicates, that shows me the logical operands AND/OR/NOT as well as the attributes and parameter placeholders involved? There is no need for a SQL or platform specific…
Steve Oh
  • 1,149
  • 10
  • 18
2
votes
1 answer

Persist List of Embeddable in an Entity

I want to persist a List of Embeddable Objects in an Entity. But without creating a new Table for the Objects in the List. I want to persist the Entity in a way that the List of coordinates is serialized to a String and saved in the column named…
Laokoon
  • 1,241
  • 4
  • 24
  • 47
2
votes
2 answers

EclipseLink doesn't generate tables

i defined some Entities and want to generate the tables now. I use Eclipselink 2.5 (JPA 2.1) and Glassfish 4.0 and my Program uses JKD7. When i build the application there are the following messages: warning: Supported source version 'RELEASE_6'…
Laokoon
  • 1,241
  • 4
  • 24
  • 47
2
votes
2 answers

Glassfish: Silently ignore unavailable data source at application start up

I have an EJB application which uses JPA 2.0 on Glassfish 3.1.2 (provider is EclipseLink). When the database is down the application does not start and even more: can't be deployed. This is because EclipseLink does some initial verification. Is…
Claude
  • 1,724
  • 3
  • 17
  • 46
2
votes
3 answers

eclipse 4.3 EE facet jpa 2.0 build error

I'm trying Eclipse Kepler 4.3 EE After open it over my old workspace, my project starts with an build error: This project has the JPA facet, but no JPA project could be created. See the error log for more details. This is the…
Beto Neto
  • 3,962
  • 7
  • 47
  • 81
2
votes
1 answer

When are connections taken/returned from a connection pool?

I have a simple Java SE Application which uses JPA(EclipseLink). By default I have one 'default' connection pool which allows up to 32 connections. Suppose I do something like this: EntityManagerFactory emFactory =…
D-rk
  • 5,513
  • 1
  • 37
  • 55
2
votes
0 answers

EclipseLink JPA 2.0 "is not present in this descriptor" bug or my fault?

I have troubles with following relationship: @Entity public class Account { @OneToMany private Map myMap; // getter, setters, etc. } With the Wrappper Entity: @Entity public class WrapperEntity { …
bmurauer
  • 989
  • 8
  • 24
2
votes
2 answers

jpa criteria group by aggregates values

I need a query to convert time (milisec) to an hourly distribution. my table has a colum called timestamp : value in milisec. to group on hours I need to do the folowing devide by 1000 -> sec devide by 3600 -> hours -> mod 24 -> get the hour of day…
Gadi
  • 1,539
  • 22
  • 37
2
votes
1 answer

EclipseLink MOXy: Bindings working with Unmarshaller but not with Binder

I use the same bindings configuration for unmarshalling once using the Unmarshaler and once using a Binder. The first approach works fine, the second throws an Exception. What's the reason? Input:
hansi
  • 2,278
  • 6
  • 34
  • 42
2
votes
1 answer

EclipseLink MOXy: Logical operators in XmlPath annotation

Do logical operators work in XmlPath annotations of EclipseLink MOXy? I tried and could not make it work (no Exception is thrown and nothing is bound to "elements"). For example, I would like to have in a bindings file something like this: …
hansi
  • 2,278
  • 6
  • 34
  • 42
2
votes
0 answers

Why is NamedQuery always returning cached results (stale data)

I seem to have an odd caching problem (I guess) for NamedQuery which I can not seem to resolve. Here are some details: I have a Process, ProcessForm and ProcessFormModule tables and related entities - which are all linked using standard @JoinColumn…
daxur
  • 359
  • 1
  • 11
2
votes
1 answer

Maven dependency equivalent to MOXy

I'm trying to find the maven dependency that contains the class equivalent to import org.eclipse.persistence.oxm.annotations.XmlVariableNode; Here's the POM I have so far but none of the dependencies contain the XmlVariableNode class that I'm…
user2494770
2
votes
1 answer

How add mapping to existing dynamictype in helper - EclipseLink

I'm creating a dynamic class in EclipseLink, but after created can not add a new field to my class. When I add a new field, eclipselink creates a column in the table but when trying to set the value in this column the EntityManager can not salver…
wmews
  • 21
  • 1
2
votes
1 answer

@JoinColumn must be specified for each join column using the @JoinColumns

I am trying to implement many to many relationship with extra column, but gettig below error. Could somebody explain why below error is occurring anf how to solve? Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services -…
Srikanth Hugar
  • 385
  • 5
  • 22
2
votes
1 answer

Query.setparameter using TemporalTipe.Time

I wanna do SELECT e FROM Pedidos e WHERE e.diaPedido = :diaPedido AND e.horaPedido = :horaPedido. When I write parameters use query.setParameter("diaPedido", fechaEscogida, TemporalTipe.DATE) and query.setParameter("horaPedido", horaEscogida,…
Mathew Rock
  • 989
  • 2
  • 14
  • 32