1. Persisting a Hibernate POJO containg Composite_id


2. newbie: POJO gets id but is not saved

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