Questions tagged [jpa-rs]

5 questions
2
votes
0 answers

Inheritence and Lists in JPA-RS: items don't show up at expected parent element

Given a root class with a property private List items and Base being an abstract class: // omitted properties, Constructor, Getter, Setter, etc. @Entity @XmlRootElement(name = "ROOT") @XmlAccessorType(XmlAccessType.FIELD) public class Root…
Imperative
  • 3,138
  • 2
  • 25
  • 40
1
vote
0 answers

Static nested classes in EclipseLink JPA-RS

I have a problem using static nested classes with EclipseLink JPA-RS. I have a simple JPA entity class @Entity @XmlAccessorType(XmlAccessType.FIELD) public class Inventory { @Id private Integer id; @ElementCollection private…
ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
1
vote
1 answer

Properties with @Embeddable and @XmlPath(".") are not displayed correctly in JPA-RS metadata

Given the JPA-RS example here, i added a new property for the address to the Student class: @Embedded @XmlPath(".") private Address address; The Address class: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @Embeddable public class Address…
Imperative
  • 3,138
  • 2
  • 25
  • 40
1
vote
0 answers

Bidirectional OneToOne relationship in JPA-RS not traversable

I use the simple entities below for exploring jpa-rs: @Entity public class Employee { @Id @GeneratedValue private int id; private String name; @OneToOne private Address address; } @Entity public class Address { @Id …
Imperative
  • 3,138
  • 2
  • 25
  • 40
0
votes
1 answer

Getting ClassNotFoundException org.eclipse.persistence.jpa.rs.resources.MetadataResource

I'm trying to walk through the JPA-RS tutorials like: http://java.dzone.com/articles/introducing-eclipselink-jpa-rs or http://www.eclipse.org/eclipselink/documentation/2.5/solutions/restful_jpa.htm But after trying to deploy (using the maven and…
jakblu
  • 3
  • 5