Without seeing your code it is not obvious what is going wrong but remember that while in the database a foreign key is a two way association in your Java model it is not. This means simply adding an OrderPosition object to the list associated with an order is not enough. You also have to set the Order on the OrderPosition. This is typically referred to as needing 'scaffolding' code to maintain two way relations ships.
So try this in your Order class unless you do it already:
Code:
void addOrderPosition(OrderPosition op) {
orderpositionsCollection.add(op);
op.setOrder(this);
}