database - Best way to develop Java with a DB -


i've experience toplink translate objects database , vica versa. part of jsp site , did ejb stuff to. question: work stuff toplink in java desktop application or more common use native sql stuff java?

maybe experience of prof. developpers might good. need develop application client. i'm doing in java , i'm gonna store data in database.

thanks

orm nice if data model structured, not overly complex and, of all, if have control on it.

legacy databases or poorly modelled ones harder represented orm, , doing discouraged, application add further complexities on implied model itself.

if comfortable orm tool such hibernate , database done, go it. sure save lot of boilerplate code , have nice query optimization code under hood. otherwise, may want use jdbc directly or other framework simplify jdbc use still using plain sql. such situations recommend mybatis.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -