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

@AdditionalCriteria on a variable rather than a class in EclipseLink

Just like in hibernate, in EclipseLink we have the annotation @AdditionalCriteria that allow us to add a filter on our data. In hibernate it as @Filter and you can either add it on top a a class or on a field like this. @Filter(name="test",…
2
votes
0 answers

Is the Eclipselink connection pool meant to be used in production?

I am currently trying different connection pools together with eclipselink. The one I am currently configuring is the one by eclipselink itself. Now I am not sure if it is meant to be used in production or if I should use another such as HikariCP?…
Ben
  • 2,314
  • 1
  • 19
  • 36
2
votes
2 answers

How to Use Formatted Text Fields with LocalDate type?

I'm using swing and trying to convert one date from database, I used the master detail to generate my form! When I am using it with Date type, it's works fine, but when I try to use with LocalDate it I get this exception: Exception in thread…
Pena Pintada
  • 137
  • 11
2
votes
0 answers

JPA preRemove listener not called for entity removed on cascade

I am using Eclipselink as a JPA provider and using EntityListener to catch preRemove events from my entities. I have the following hierarchy: @Entity @Table(name = "MY_ENTITY") @EntityListeners(AuditListener.class) public class…
Marcelo Ribeiro
  • 113
  • 1
  • 11
2
votes
1 answer

Jaybird with JPA on UUID field (char(16) character set octets)

I have problem with UUID ID fields defined by domain CREATE DOMAIN OCTET16 AS CHAR(16) CHARACTER SET OCTETS; I have defined AttributeConverter for jpa as import java.util.UUID; import javax.persistence.AttributeConverter; import…
tJeyhun
  • 195
  • 1
  • 9
2
votes
1 answer

What determines where eclipselink is looking for @Column, @Temporal and @Id annotations?

I try to migrate my project from Java 6 + WebLogic 12.1.1 + EclipseLink 2.5.0 to Java 8 + WebLogic 12.1.3 + EclipseLink 2.6.4. In all my EclipseLink entities I have @Id, @Temporal and @Column annotations for getters and not for fields. But when I…
Xentai
  • 69
  • 11
2
votes
1 answer

How to enable static weaving in eclipseLink with remote persistence.xml using Maven?

I have a separate jar which contains the persistence.xml. This jar has been added as a dependency in the parent pom of the jar which has the entities. I want to enable static weaving. According to EclipseLink documentation, I can specify the…
Amrita
  • 131
  • 7
2
votes
3 answers

Problem with ManyToMany and JPA EclipseLink

I've got a ManyToMany Relationship with composite key between a User and a Group in JPA EclipseLink. My Implementation looks like that: User Class: @Entity @Table(name="mbm_user") public class User extends CanAccessBook{ @Id…
LeonS
  • 2,684
  • 2
  • 31
  • 36
2
votes
0 answers

What is the proper type for moxy/getValueByXPath() for XML node?

I have the following xpath expression and call to getValueByXpath: String xpath = "/msg:L1MessageRequest/msg:Header"; Object val = jaxbContexL1.getValueByXPath(message.getPayload(), xpath, resolver, Object.class); I am getting null value back from…
OldProgrammer
  • 12,050
  • 4
  • 24
  • 45
2
votes
1 answer

Workaround for the missing NVL() in JPA 1.0

is there a workaround for the missing NVL() function in JPA 1.0 (Eclipselink 1.1.x)? Thank you and best regards
MRalwasser
  • 15,605
  • 15
  • 101
  • 147
2
votes
2 answers

Kettle lauched inside java function change system properties

I'm running Kettle inside an EJB on Wildfly. It works well but, when i re-deploy my EAR application, wildfly give me a lot of transaction errors: Exception Description: Error obtaining the Transaction Manager Internal Exception: Exception…
Daniele Licitra
  • 1,520
  • 21
  • 45
2
votes
0 answers

The Hibernate's PostgresUUIDType analogue in EclipseLink for mapping java.util.UUID to Postgres's "uuid" type

When using Hibernate it is possible to mark field of JPA-entity with @org.hibernate.annotations.Type(type="org.hibernate.type.PostgresUUIDType") if you want to map fields of type java.util.UUID to uuid type of PostgreSQL. Is there such analogue in…
Renat Sh
  • 41
  • 3
2
votes
1 answer

java.time YearMonth as a type within entity

How do you use YearMonth within an entity? I have seen a lot of stack overflow answers about a converter? Is this still needed and if so how? @Basic(optional = false) @NotNull @Column(name = "cc_exp_date") private YearMonth ccExpDate; The exception…
Grim
  • 2,398
  • 4
  • 35
  • 54
2
votes
3 answers

Limitation of JPA 1.0 using @IdClass with *nested* composite primary keys?

Given the following example (departments - projects): A department has the following properties (composite primary key): @Entity @IdClass(DeptId.class) public class Department { @Id @Column(name="number") private Integer number; …
Kawu
  • 13,647
  • 34
  • 123
  • 195
2
votes
0 answers

JPA N+1 issue with inheritance

If I am in the situation where I have a n+1 problem I normally use the JPA "join fetch" keyword if it is only one indirection (i. e. select p from Person p join fetch p.address) or if it is more than one indirection I use a JPA provider-proprietary…
Filou
  • 490
  • 4
  • 17