We found a problem with the DDL created by ebean where insertable=false and updatable=false.
See the attached test classes for an example that will fail, it created this sql for the Order class:
create table orders ( company varchar(255), order_number integer, customerName varchar(255), customerName varchar(255), item varchar(255), constraint pk_orders primary key (company, order_number))
... @Entity @Table(name="orders") public class ROrder { @EmbeddedId protected ROrderPK orderPK; @ManyToOne(cascade=CascadeType.ALL) @JoinColumns({ @JoinColumn(name="company", referencedColumnName="company", insertable=false, updatable=false), @JoinColumn(name="customerName", referencedColumnName="name", insertable=false, updatable=false) }) private RCustomer customer; @Column(name="customerName") private String customerName; ...
Fixed in HEAD.