Announcement Announcement Module
Collapse
No announcement yet.
import javax.persistence.Entity cannot be resolved (Spring ROO) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • import javax.persistence.Entity cannot be resolved (Spring ROO)

    Hello,

    I am trying to use Spring ROO (with STS) to speed up the dev on my MVC app, in order to check out that I tried the small example and I coudn't figure out why is it not working.
    I have the following error as soon as I try to use "perform " command or other build (tomcat:run etc...)

    ---------------error-----------------------
    [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ ten-minutes ---
    [ERROR] The import javax.persistence.Column cannot be resolved
    [ERROR] The import javax.persistence.Entity cannot be resolved
    [ERROR] The import javax.persistence.GeneratedValue cannot be resolved
    [ERROR] The import javax.persistence.GenerationType cannot be resolved
    [ERROR] The import javax.persistence.Id cannot be resolved
    [ERROR] Entity cannot be resolved to a type
    [ERROR] Id cannot be resolved to a type
    [ERROR] GeneratedValue cannot be resolved to a type
    [ERROR] Column cannot be resolved to a type
    [ERROR] id cannot be resolved or is not a field
    ...
    ---------------------

    I tried the following fix (found on the forum) but no luck.... It is weird as the dependency is there

    <dependency>
    <groupId>org.hibernate.javax.persistence</groupId>
    <artifactId>hibernate-jpa-2.0-api</artifactId>
    <version>1.0.0.Final</version>
    </dependency>

    I also tried to clean, force the dependency udate etc.. still nothing. I am sure I missed something really easy and/or I did something dum...



    Thanks for your help!!

    Pierre
Working...
X