This is how I get the identifier from the save (entity) method:
Serializable save = hibernateTemplate.save(article);
return Integer.valueOf(save.toString());
Being a complete noob for hibernation, I'm just wondering if this is the right thing to do? I would be grateful for any advice.
source
share