"generate" is not a valid data member of that @Id annotation. @Id does'nt have any data members. You will have to use a combination of @GeneratedValue,@GenericGenerator to achieve it. Here's an example using the Hibernate Generic Generator Annotation:
Code:
@Id @GeneratedValue(generator="increment")
@Column(name="APP_ID")
@GenericGenerator(name="increment",strategy="increment")
A JPA/EJB3 only annotation might look something like this:
Code:
@Id @GeneratedValue(strategy=SEQUENCE)
@SequenceGenerator(name="mySeq",sequenceName="mySeq")
@Column(name="APP_ID")