Skip to content

Commit

Permalink
remove one of the attempts to force recognition of the id property
Browse files Browse the repository at this point in the history
it seemed to be causing a second _id to be emitted.
  • Loading branch information
pahjbo committed Aug 17, 2023
1 parent b2df54a commit 3eb3377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/xslt/vo-dml2java.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -547,14 +547,13 @@
@jakarta.persistence.Id
@jakarta.persistence.GeneratedValue
@jakarta.persistence.Column(name = "ID")
@com.fasterxml.jackson.annotation.JsonProperty("_id") // This is an attempt to get the schema generator to create an entry - TODO JSON schema generation should really just understand the @JsonIdentityInfo
@com.fasterxml.jackson.annotation.JsonProperty(value="_id", access=com.fasterxml.jackson.annotation.JsonProperty.Access.READ_WRITE) // This is an attempt to get the schema generator to create an entry - TODO JSON schema generation should really just understand the @JsonIdentityInfo
protected Long _id = (long) 0;

/**
* @return the id
*/
@Override
@com.fasterxml.jackson.annotation.JsonProperty("_id") // This is an attempt to get the schema generator to create an entry - TODO JSON schema generation should really just understand the @JsonIdentityInfo
public Long getId() {
return _id;
}
Expand Down

0 comments on commit 3eb3377

Please sign in to comment.