forked from OpenLiberty/open-liberty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...pa_32_fat/test-applications/jakartadata/src/io/openliberty/jpa/data/tests/models/Box.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 IBM Corporation and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package io.openliberty.jpa.data.tests.models; | ||
|
||
/** | ||
* Recreate from Jakarta Data TCK | ||
*/ | ||
@jakarta.persistence.Entity | ||
public class Box { | ||
@jakarta.persistence.Id | ||
public String boxIdentifier; | ||
|
||
public int length; | ||
|
||
public int width; | ||
|
||
public int height; | ||
|
||
public static Box of(String id, int length, int width, int height) { | ||
Box box = new Box(); | ||
box.boxIdentifier = id; | ||
box.length = length; | ||
box.width = width; | ||
box.height = height; | ||
return box; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Box@" + Integer.toHexString(hashCode()) + ":" + length + "x" + width + "x" + height + ":" + boxIdentifier; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters