@Where 절을 @OneToOne 다음과 같은매핑 내가 엔티티를 매핑하는 것을 시도하고있다
@OneToOne(mappedBy = "localizedLabel")
@JoinColumn(insertable = false, updatable = false)
@WhereJoinTable(clause = "locale='en_US'")
public Localization getEn_US() {
return en_US;
}
나는 데이터가없는 하나의 경우는 null 반환하지만 최대 절전 모드 내를 무시하는 것 같다 드릴 수 있습니다
@ Where 절 :
ERROR com.eventtouch.bc.business.core.log.LoggingInterceptor - org.hibernate.HibernateException: More than one row with the given identifier was found: 4211, for class: com.eventtouch.bc.business.domain.LocalizedLabel
@Where 절과 @OneToOne 관계를 매핑하는 방법에 대한 아이디어가 있습니까?
감사
나는 그랬지만 오류는 지속됩니다! – Gabriel