question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Eclipselink

See original GitHub issue

Can Spring Boot supports natively also Eclipselink ?. I’m struggling with hibernate because it doesn’t really support composite keys (a.k.a Natural keys). For example if i try queries like these:

select count(distinct e) from entity as e --> select count(distinct **id_part1, id_part2**) from entity
select e from entity where e exists (select ee from entity as ee) --> select id_part1, id_part2 from entity where (id_part1, id_part2) exists (select **(**id_part1, id_part2**)** from entity)

and many others. Surrogate keys aren’t a solution, only a workaround. Also the lack of support by Red-hat, for example issue [https://hibernate.atlassian.net/browse/HHH-1615](group by issue)

@Data//lombok
@IdClass(EntityPK )
public class Entity {
    @Id
    String id_part1;
    @Id
    String id_part2

  @Data//lombok
  public static class EntityPK {
    @Column
    String id_part1;
    @Column
    String id_part2;
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
philwebbcommented, Jun 21, 2016

I’m afraid we don’t current have auto-configuration for Eclipselink but it is supported by Spring Data and Spring Framework. It looks like @dsyer has already put together an example project that shows how you can use it.

0reactions
philwebbcommented, Dec 14, 2018

We’re cleaning out the issue tracker and closing issues that we’ve not seen much demand to fix. Feel free to comment with additional justifications if you feel that this one should not have been closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing EclipseLink NoSQL Support
To add support for NoSQL databases to EclipseLink, download and install eclipselink-plugins-nosql- ver_no .zip file from ...
Read more >
Using JPA Support with EclipseLink - Apache NetBeans
A video tutorial on how to handle Java Persistence API support using EclipseLink in the NetBeans IDE. The demonstration is divided into two...
Read more >
PI75608: Add EclipseLink support for Java 2 Security - IBM
Add doPriv() blocks in appropriate places within EclipseLink in support of Java 2 Security.
Read more >
Configuring the Persistence Provider for JPA Projects
Select Java Persistence Library (EclipseLink) from the Project Facet list, and then click OK to apply your selection and close the Project Facets...
Read more >
Data Persistence with JPA & Eclipselink @ https://jojozhuang ...
In Eclipse, File -> New -> 'JPA Project', Name: JPATutorial , and select 'Java SE 8' for target runtime, click Next. ... Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found