-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30532 from njr-11/redeliver-30472-after-fixing-break
Redeliver #30472 after fixing break
- Loading branch information
Showing
13 changed files
with
298 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
...y.data.internal_fat/test-applications/DataTestApp/src/test/jakarta/data/web/Purchase.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,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2025 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 | ||
* | ||
* Contributors: | ||
* IBM Corporation - initial API and implementation | ||
*******************************************************************************/ | ||
package test.jakarta.data.web; | ||
|
||
/** | ||
* Entity where one of the attributes is a record that is in this case used as | ||
* an embeddable, but elsewhere used as an entity. | ||
*/ | ||
public class Purchase { | ||
public String customer; | ||
|
||
public long purchaseId; | ||
|
||
public Receipt receipt; | ||
|
||
public float total; | ||
} |
40 changes: 40 additions & 0 deletions
40
....data.internal_fat/test-applications/DataTestApp/src/test/jakarta/data/web/Purchases.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,40 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2025 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 | ||
* | ||
* Contributors: | ||
* IBM Corporation - initial API and implementation | ||
*******************************************************************************/ | ||
package test.jakarta.data.web; | ||
|
||
import java.util.Optional; | ||
|
||
import jakarta.data.repository.DataRepository; | ||
import jakarta.data.repository.Delete; | ||
import jakarta.data.repository.Find; | ||
import jakarta.data.repository.Insert; | ||
import jakarta.data.repository.Repository; | ||
|
||
/** | ||
* Repository for an entity where one of the attributes is a record that is in | ||
* this case used as an embeddable, but elsewhere used as an entity. | ||
*/ | ||
@Repository | ||
public interface Purchases extends DataRepository<Purchase, Long> { | ||
|
||
@Insert | ||
void buy(Purchase purchase); | ||
|
||
@Delete | ||
void clearAll(); | ||
|
||
// Selects multiple entity attributes into a record, per the spec | ||
@Find | ||
Optional<Receipt> receiptFor(long purchaseId); | ||
|
||
} |
Oops, something went wrong.