Gregory Tutt created OLINGO-711:
-----------------------------------

             Summary: Using an Entity in an Embeddable Object
                 Key: OLINGO-711
                 URL: https://issues.apache.org/jira/browse/OLINGO-711
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
    Affects Versions: V2 2.0.4
            Reporter: Gregory Tutt
            Priority: Critical


When calling the $metadata service, I receive an error which is caused by an 
exception raised when generating the model.

I have an Entity that contains an Embeddable object which contains an other 
Entity. When calling the $metadata service, I receive an error message.

@Embeddable
public class ControlRecord implements Serializable {
        @JoinColumn(name="createdBy")
        @ManyToOne
        private UserDefinition createdBy;
        ....
}

@Entity
public class UserDefinition implements Serializable {
        @Id
        @GeneratedValue
        private Long id;
        ...
}

@Entity
public class Component implements Serializable {
        @Id
        @GeneratedValue
        private Long id;

        @Embedded
        private ControlRecord ctrlRecord;
)

The error message is empty.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to