-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3133 - For IdClass match on property name
- Loading branch information
Showing
8 changed files
with
75 additions
and
5 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
39 changes: 39 additions & 0 deletions
39
ebean-test/src/test/java/org/tests/cache/embeddedid/Concept2.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 @@ | ||
package org.tests.cache.embeddedid; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@IdClass(ConceptId.class) | ||
@SuppressWarnings("unused") | ||
public class Concept2 { | ||
|
||
@Id | ||
@Column(name = "conn_id", nullable = false) | ||
private String id; | ||
|
||
@Id | ||
@Column(name = "conn_network_id", nullable = false) | ||
private String networkId; | ||
|
||
private String label; | ||
|
||
|
||
public Concept2(String networkId, String id, String label) { | ||
this.networkId = networkId; | ||
this.id = id; | ||
this.label = label; | ||
} | ||
|
||
public String id() { | ||
return id; | ||
} | ||
|
||
public String networkId() { | ||
return networkId; | ||
} | ||
|
||
public String label() { | ||
return label; | ||
} | ||
|
||
} |
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