How to deal with databases for websites written in Java, more specifically Wicket?

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-04-07T14:36:37Z Indexed on 2010/04/19 2:23 UTC
Read the original article Hit count: 263

Hi there.

I'm new to website development using Java but I've got started with Wicket and make a little website. I'd like to expand on what I've already made (a website with a form, labels and links) and implement database connectivity.

I've looked at a couple of examples, in example Mystic Paste, and I see that they're using Hibernate and Spring. I've never touched Hibernate or Spring before and to be honest the heavy use of annotations scare me a little bit as I haven't really made use of them before, with the exception of supressing warnings and overriding.

At this point I have one Connection object which I set up in the WebApplication class upon initialization. I then retrieve this connection object whenever I need to perform queries. I don't know if this is a bad approach or not for a production web application.

All help is greatly appreciated.

© Stack Overflow or respective owner

Related posts about wicket

Related posts about spring