Originally posted by Edward Chen: Does Hibernate have some visual automation toolwhich can capture database tables and generate java bean class and mapping XML files ? It will save us from time-wasted and error-prone.
search hibernate.org for middlegen, it's still in early phase, and has teething problems, but for simple mapping generation based on schema it does the job, tho I prefer to write the mapping, but then I don't have that many to write. you can then edit your files as you see fit. after that run hmb2java through ant or from command line to generate POJO's from your mappings.