views:

19

answers:

2

I right click into the editor of the Entity class. then select Insert Code but do not see the Add Property box.

I want to add a birthday property which must be annotated with the javax.persistence.Temporal annotation to mark the property as date field to the underlying database table.

I am unsure how to use the Netbeans 6.8 IDE to add this??

+1  A: 

Insert Code > Add Property is a feature of Netbeans 6.9. Do you have the option to download the latest version of Netbeans? That should solve the problem. Otherwise you may simply write the code yourself.

Vincent Ramdhanie
+2  A: 

I am unsure how to use the Netbeans 6.8 IDE to add this??

Your best option is to use your keyboard and your fingers to add it yourself :)

@Temporal(TemporalType.DATE)
private java.util.Date birthday;

public Date getBirthday() { return this.birthday; }

public void setBirthday(Date birthday) { this.birthday = birthday; }
Pascal Thivent