Skip to content

Commit

Permalink
Removing the constructor from Point.
Browse files Browse the repository at this point in the history
  • Loading branch information
anija-anil committed Nov 19, 2024
1 parent c9e5e35 commit a070552
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

/**
* Recreate from io.openliberty.data.internal_fat_jpa
*
* The problem here is with the entity itself
* TODO: uncomment @Entity
* TODO: remove constructor from Point
*/
@Entity
public class Segment {
Expand All @@ -40,14 +36,7 @@ public class Segment {

@Embeddable
public static record Point(int x, int y) {
/**
* Recreate
* Exception Description: The instance creation method [io.openliberty.jpa.data.tests.models.Segment$Point.<Default Constructor>],
* with no parameters, does not exist, or is not accessible.
*/
public Point() {
this(0, 0);
}

}

public static Segment of(int x1, int y1, int x2, int y2) {
Expand Down

0 comments on commit a070552

Please sign in to comment.