Is it possible in RC4 to describe ejb3 entities for 3 tables that has column that is PK and FK for table A, PK and FK for table B and PK for table C?
RC4 ejb3 container cannot correctly process entity for table B (while RC3 can correctly process this situation with AccessType.FIELD).
For example, table B is table COMPANIES in ORACLE. CLIENTID is PK and FK for table COMPANIES, PK and FK for table COMPANIES_STR and PK for table CLIENTS.
In this case of entity description
@Entity @Table(name="COMPANIES") public class Companies implements Serializable { @Id @Column(name="CLIENTID", nullable=false) public Long clientid; @Id @ManyToOne(targetEntity=com.p5soft.seb.ejb.data.model.Clients.class) @JoinColumn(name="CLIENTID", referencedColumnName="CLIENTID") public Clients clients; @OneToMany(targetEntity=com.p5soft.seb.ejb.data.model.CompaniesStr.class) @JoinColumn(name="CLIENTID", referencedColumnName="CLIENTID") public Collection<CompaniesStr> companiesStrCollection; ?
What I see is, that you wanna create a companies table with two columns with the same name (CLIENTID), one is an long column (clientId) and the other is the column with the FK to Clients.CLIENTID. So ...