@Entity 주석에서 파생 클래스의 정규화 된 이름을 선언하지 않으려면 어떻게해야합니까? 나는 다음과 같은 XSD 있습니다Hyperjaxb @Entity
<xsd:complexType name="Project">
<xsd:annotation>
<!-- ... -->
</xsd:annotation>
<xsd:sequence>
<!-- ... -->
</xsd:sequence>
</xsd:complexType>
을하지만, 다음과 같은 자바 소스 생성
@Entity(name = "com.mycompany.db.Project")
@Table(name = "project")
@Inheritance(strategy = InheritanceType.JOINED)
public class Project
implements Equals, HashCode, ToString
{
...
}
나는처럼되고, @Entity에서 이름을 명시 적으로 제거해야합니다
@Entity
@Table(name = "project")
@Inheritance(strategy = InheritanceType.JOINED)
public class Project
implements Equals, HashCode, ToString
{
...
}
을 고마워,
왜? 확실히 엔티티 이름은 중요하지 않습니다. – skaffman
skaffman : 일부 사용자는 정규화 된 이름이 실제로 JPA에서는 표준이 아니라고보고했습니다. – lexicore