This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes No identifier specified for entity: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "No identifier specified for entity:" Watch "No identifier specified for entity:" New topic

No identifier specified for entity:

senthilkumar ap

Joined: Dec 01, 2008
Posts: 19
HI all..

im using java 1.6 ,jboss4.2 and postgres8.4.. my application is struts ,ejb3 integration

and i deleted the and created bec of some naming reason.. and deployed to still the error is pointing SClinicalCases(same error ) even though im not having

can any one help me..?

Thanks in advance
D Jain

Joined: Apr 13, 2011
Posts: 1

You may not be specifying the 'Id' with Id annotation, you need to specify @Id annotation above of ids getter like

@Column(name = "ID",nullable=true)
public long getId() {
return id;
I agree. Here's the link:
subject: No identifier specified for entity:
Similar Threads
getting null pointer exception
after copy server.xml from jboss 4.0.3 to jboss 4.2, the server cannot be run
Problem with DataSource
DeploymentException while deploying ear file in JBoss