Skip to content

Instantly share code, notes, and snippets.

@kenmori
Created January 7, 2017 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenmori/17ef6fd853c28c006c2cd68c00aba353 to your computer and use it in GitHub Desktop.
Save kenmori/17ef6fd853c28c006c2cd68c00aba353 to your computer and use it in GitHub Desktop.
【glassFish】これが出たら疑う箇所Exception [EclipseLink-28019] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.EntityManagerSetupException
@Entity
@SecondaryTables({
@SecondaryTable(name = "zipcode_tbl"),//not much!!
@SecondaryTable(name = "address_tbl"),
})
@Table(name="user_data_2")
public class UserEntity02 implements Serializable {
@Id @NotNull
private String id;
private String name;
@Column(table = "zip_tbl")//mistake!! ここがSecondaryTableの名前と合っていない。正→@Column(table = "zipcode_tbl")
private String zipcode;
@Column(table = "address_tbl")
private String address;
public UserEntity02(){}
public UserEntity02(
String id, String name, String zipcode, String address
) {
this.id = id;
this.name = name;
this.zipcode = zipcode;
this.address = address;
}
//setter,getter省略
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment