Setting relational db and java beans