Community
Participate
Working Groups
I am using EclipseLink product and passing Oracle Objects as IN and OUT parameters to Stored procedure. As you aware, we have @Struct annotations available in Eclipselink for representing Oracle Object, I used it and it is working perfectly. I used fields property in Struct annotation to declare order of Oracle Object columns. Thinking order of variables in Entity class doesn't matter I declared them in my own order. I have used @Column to map field and variable in Java entity class. But, this mapping doesn't work. Its always mapping from top to bottom in the fields (@Struct) order. I have posted in couple of forums including stack overflow. But, no response from anyone. Thinking it may be a bug, raising it here. My Source code look like this: @Struct(name = "REC_OBJECT", fields = {"TRANS_ID", "PROJECT_ID", "LANGUAGE_CODE", "DESCRIPTION"}) @Embeddable public class Master { @Column(name = "PROJECT_ID") private String projectId; @JsonIgnore @Column(name = "TRANS_ID") private String transactionId; @Column(name = "LANGUAGE_CODE") private String languageCode; @Column(name = "DESCRIPTION") private String description; } Eventhough I annotated projectId with PROJECT_ID column, TRANS_ID value is mapped to projectId. Thanks Srikanth
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink