When we have Embedded class, we shouldn't call #session.save.
@Entity
public class Place {
@Embedded
private Address address;
}
@Embeddable
public class Address {
}
With the above example, when we call Fixture.from(Place.class) then Fixture-Factory is calling session.save(address) and it throws an Exception: org.hibernate.MappingException: Unknown entity
When we have Embedded class, we shouldn't call
#session.save
.With the above example, when we call
Fixture.from(Place.class)
then Fixture-Factory is callingsession.save(address)
and it throws an Exception:org.hibernate.MappingException: Unknown entity