Add support for Eclipselink
See original GitHub issueCan 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:
- Created 7 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.