mapping bar, baz and bat java classes to db.