Spring Projects Issues
Spring Projects Issues
**[Benjamin Demarteau](https://jira.spring.io/secure/ViewProfile.jspa?name=bendem)** commented Just dropping the mentioned link here: https://github.com/javaee/jpa-spec/issues/76
**[Jens Schauder](https://jira.spring.io/secure/ViewProfile.jspa?name=schauder)** commented The issue is now here: https://github.com/eclipse-ee4j/jpa-api/issues/76
**[loicrouchon](https://jira.spring.io/secure/ViewProfile.jspa?name=loicrouchon)** commented Criteria API does actually provide one way to handle this problem. You can do it by using a default value for the `NULL` values in the `ORDER BY`...
**[Jens Schauder](https://jira.spring.io/secure/ViewProfile.jspa?name=schauder)** commented While this is a valid workaround on JPA level it does not work for JPA because we need to know the `MAX_VAlUE`/`MIN_VALUE` equivalent for the type of...
**[Ruslan Stelmachenko](https://jira.spring.io/secure/ViewProfile.jspa?name=djxak)** commented As I already mentioned in [DATAJPA-825](https://jira.spring.io/browse/DATAJPA-825) there is a way to do it consistently: ```java javax.persistence.criteria.Order nullsLastOrder = builder.asc( builder.selectCase() .when(builder.isNotNull(root.get("someproperty")), 0) .otherwise(1)); ``` We can use...
**[William Gorder](https://jira.spring.io/secure/ViewProfile.jspa?name=wgorder)** commented This is annoying the exact use case of ``` @Entity public class EntityB { @Id private Long id; @MapsId @OneToOne private EntityA entityA; // getter/setters omitted }...
**[Mauro Molinari](https://jira.spring.io/secure/ViewProfile.jspa?name=mauromol)** commented Another similar problem is when you have a compound primary key made of a basic attribute and a related entity, although using a proper id class: ```...
**[Elwayusei](https://jira.spring.io/secure/ViewProfile.jspa?name=elwayusei)** commented I have the same problem, Could you please help me? thnks
**[Mario Ceste](https://jira.spring.io/secure/ViewProfile.jspa?name=ironclay)** commented I was able to work around the problem. Below is the mapping that worked using Eclipselink v2.5.0. I used a listener to set the identifier. ```java @Entity...
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented I took a look at the issue and ran into following results by using the code from the original issue description: 1. Hibernate: Requires the using class...