Created
January 7, 2017 11:45
-
-
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
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
@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