多対一関連定義には、@ManyToOne @Entity public class Emp { @ManyToOne public Dept dept; } 一対多関連定義には、@OneToMany 一対多の関連の型は、 List<エンティティ型> @Entity public class Dept { @OneToMany(mappedBy = "dept") public List<Emp> emp; } 【参考サイト】 Seasar2 - S2JDBC - エンティティ S2JDBCで外部SQLを実行する。 //ロジッククラス public class EmpService extends AbstractService<Emp> { public List<Emp> outSqlSelectAll(){ return selectBySqlFile(Emp.class, "sele