I have 12 tables in the database. and all tables has same columns and same relations.
So I had writen the code in JPA.
@MappedSuperclass
public class BaseAddress {
... properties and relations (@ManyToOne / @OneToMany)
}
@Entity
public class Address1 extends BaseAddress {
// has no code. properties and relations are inherited.
}
@Entity
public class Address2 extends BaseAddress {
// has no code. properties and relations are inherited.
}
but, I don't know how implemented it in squeryl schema definition. How implement that relation inheritance in squeryl ?