Hibernate if @NotFound, Insert into Database <p>My client wrote the back-end for an application i'm building using PHP. However He didn't write the database all too well. For instance there is two tables one 'users' and one 'user_settings'. However his script would only create rows in 'user_settings' once a user decided to modify their settings. Otherwise his entire script used defaults, in his words "as an attempt to save database space".</p> <p>However, in Hibernate i'm having to try and get those 'user_settings' for some users and its causing problems for those that don't have any set. Is there a way in hibernate that I would be able to insert some default settings into the database, after a call to getClientSettings() if nothing exists in the database for that client?</p>