Hi
Please help me out here iam stuck with this problem
Im using Appfuse2 Struts2 arche type
I created model Class as follows
@Entity
@Table(name="product")
public class Product extends BaseObject {
private String prodCode;
private String Name;
@Column(name="pCode",unique=true, nullable=false, length=8)
public String getProdCode() {
return this.prodCode;
}
public void setProdCode(String prodCode) {
this.prodCode = prodCode;
}
............
<Added getters and setters for name and equals and hascode everything
implemented>
..........
...
}
when iam running mvn appfuse:gen -Dentity = Product
It resulted with errors as
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] No identifier specified for entity: org.mycompany.model.Product
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.hibernate.AnnotationException: No identifier specified for entity:
org.mycompany.model.Product
at
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:62
6)
...........................
......................
Im thinking that the problem is bcoz of that i have not added @Id which i
dont require here
If this is the problem how to do without this @Id
I need to Generate it with this ProdCode(String) which is PRIMARYKEY.
Please help me out im stuck ..
Thanks in advance
RajeshSR
--
View this message in context:
http://www.nabble.com/unable-to-mvn-appfuse%3Agen-for-the-model-without-%40Id--in-Appfuse2-tp21000558s2369p21000558.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]