Valter Silva
Valter Silva

Reputation: 16656

How create a project with JSF 2 + Eclipse Java EE Web Developers + Hibernate?

I really need to create a simple project with these technologies, I already know how create a JSF 2 project in Eclipse. But I don't know how to insert hibernate and make it work. I know in Netbeans but I want to change to Eclipse definitely.

I searched in Google but nothing solid.

Any lead, tip, will be very appreciated.

Thanks

Upvotes: 0

Views: 1259

Answers (1)

BalusC
BalusC

Reputation: 1108722

Are you talking about Hibernate as in "Good ol' Hibernate Core" as it was back then in old J2EE ages or are you talking about Hibernate's JPA implementation, the EntityManager?

If the former, I've found the Hibernate Tools Eclipse plugin very useful. It allows for autogeneration of entities out of tables and vice versa and offers several useful wizards. Given the fact that you're using JSF2 and based on your question history I know that you're using Java EE 6, I wonder why you wouldn't go for JPA?

If the latter, just use Eclipse's own Dali plugin (which is already part of Eclipse for Java EE). It offers simliar features as Hibernate Tools. You should now only focus on keyword "JPA", not "Hibernate" as that's now just an implementation detail (the competitor being EclipseLink, which is the reference implementation and used in among others Glassfish). The Dali homepage has good documentation, tutorials and video demos.

Upvotes: 6

Related Questions