Hi Together,
I am new to EJB3 and therefore I need your help. Please forgive me if this question is not very imaginative.
My case:
----------
Let's say I have two tables with different names but with the same structure:
Team_Green (id, first_name, last_name) Team_Blue (id, first_name, last_name)
package ... import ... @Entity @Table(name="<table_name>") public class TeamMember implements Serializable { private String id; private String firstName; private String lastName; public TeamMember() { super(); } public TeamMember(String id, String firstName, String lastName) { super(); this.id = id; this.firstName = firstName; this.lastName = lastName } @Id @Column(name="id") // I know that this one is not necessary public String getId() { return id; } public void setId(String id) { this.id = id; } @Column(name="first_name") public String getFirstName() { return firstName; } public void setFirstName(String fristName) { this.firstName = firstName; } @Column(name="last_name") public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } }