The reference should be by the name of the entity, not the original name of the table in the DB. So this shall be:
@ManyToOne @JoinColumn(name="cart_id", nullable=false) private CartEntity cart;
And the same shall be applied to the item entity.