This is an example of the entity causing the issue:
{code} @Entity public class News {
@EmbeddedId private NewsID newsId; ... }
@Embeddable public class NewsID {
@Column( name = "id") private String id; private String title; ... } {code}
The exception is thrown by the following type of queries (they refer to only one attribute of the embedded id): {code} SELECT n.newsId.id FROM News n WHERE n.newsId.id = :id {code} |
|