I'm saving with Hibernate a transient instance of an entity:
Student e = new Student();
e.setName("Clio");
School s = new School();
s.setName("Archimede");
e.setSchool(s);
myDao.save(e);
I've transactional dao:
@Transactional
@Repository
public class MyDao {
// Other code
Why is in this case only the student inserted into the table but not the school?