I am new to website development using Java, but I started with Wicket and made a small website. I would like to expand what I have already done (a site with a form, shortcuts and links) and implement a database connection.
I looked at a few examples, for example, Mystic Paste, and I see that they use Hibernate and Spring. I've never touched Hibernate or Spring before, and frankly, the intense use of annotations scares me a bit, as I still haven't used them before, except for suppressing warnings and overriding.
At this point, I have one Connection object that I installed in the WebApplication class during initialization. Then I retrieve this connection object whenever I need to execute queries. I don't know if this is bad for a working web application or not.
All help is appreciated.
source
share