class Entity {
private InnnerEntity innerEntity;
}
I had above structure in JPA previously, but now I have to change it to collection like:
class Entity {
private List<InnnerEntity> innerEntity;
}
And this list will contain only 1 or 0 elements. So I need to make JPA work with that structure exactly as it was before. I mean to still have mapping one to one or in other case have it as an embedded entity. Is that even possible ?