Vaibhav
Vaibhav

Reputation: 1104

JSF pages from entity classes generated code

In NetBeans 7.4, their is an option while working with hibernate and JSF in project menu as -"JSF pages from entity classes". I selected an entity class and then it generated many packages and many class files. What are these exactly and what this files do?

Upvotes: 0

Views: 1353

Answers (1)

user2880020
user2880020

Reputation:

What are these exactly and what this files do?

They are session scoped controller classes and some basic EJBs. They will allow you to access and persist entities object-data from and into your database. You don't need those generic controllers if you have entities classes , EJBs and managed 'backing' beans.

They are the 'C' in the MVC (Model View Controller) user interface paradigm. 'V' is your Facelet (.xhtml, .jsf page). 'M' is the entity class.

Upvotes: 2

Related Questions