One of the features that I use the most is the ability to generate entity classes from the database. NetBeans makes it easy to add an entity class to your project without any coding.
First, right-click on a project package, and choose "New->Entity Classes from Database" (Figure 1).
Figure 1: New Entity Class from Database
Next, select a data source, and then choose at least one table from the "Available Tables" list, as shown in Figure 2.
Figure 2: Choose Table from Available Tables list
Choose the Project, location, and package to which the entity class will be added. Then specify any preferences to indicate if you'd like named queries, JAXB annotations, or MappedSuperClass instead of entities. (Figure 3)
Figure 3: Specify Package name and preferences
Lastly, select mapping options for your entity class, as shown in Figure 4.
Figure 4: Entity Class Mapping Options
Viola...you have an entity class that is ready to use...compliments of NetBeans IDE!
Figure 5: Completed Entity Class