ID « POJO « JPA Q&A





1. Persisting a Hibernate POJO containg Composite_id    forum.hibernate.org

...

2. newbie: POJO gets id but is not saved    forum.hibernate.org

well, it seems like you misunderstood my question, but you eventually answered my first question anyway. A flush() does not save to the database, I need to do a commit() as well (sic!). A very basic thing, of course, which I probably should have been aware of. Any ideas for question 2? cheers, pj