I read this http://www.avaje.org/topic-4.html about Secondary Table, then I try write my Entity code like:
@Column(table="editions")
private String title;
But has received an error:
javax.persistence.PersistenceException: Query threw SQLException:ERROR: missing FROM-clause entry for table "a0"
??????????????: 122 Query was:
select a.id as c0, a.edition as c1, a.member as c2, a.enabled as c3, a.metadata as c4, a.created as c5, a.updated as c6, a0.title as c7
from accounts a
where a.enabled = ? and a.member = ?
order by a.title desc, a.created desc
Where I was mistaken?