This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This POJO class was generated by Hibernate at "code generation" time. The auto-generated code has this import statement "javax.ejb.Stateless" and I got "this import cannot be resolved", therefore I believe "@Stateless" cannot be resolved to a type. I could not dig up a file with "javax.elb.Stateless" to add to the file.
I got a compile error in business.java on this line: "public class Businesses implements java.io.Serializable"
Multiple markers at this line
- The serializable class Businesses does not declare a static final serialVersionUID field of
- The public type Businesses must be defined in its own file
- The type Businesses is already defined
and on @Stateless - cannot be resolved to a type
Here's my 2 auto-generated file after Hibernate Code Generation:
Note: sorry for the confusion. I use the class name <book> in my previous postings but it is interchangeable with <business> e.g. book.java is business.java.
Hope I am making some sense.
Joined: Mar 05, 2010
The 2 compile errors listed RED above are gone after I cleared Tomcat's work directories, the project directories and restarted Eclipse.
Good Grief... I cleared both before many times but did not restart Eclipse. It seems like Eclipse was not registering the changes....unless it restarts.
I am still not entering ModelAndView handleRequest() where I actually get the client's HTTP message and process it before rendering it to the View