kolorobot / spring-mvc-quickstart-archetype

The project is a Maven archetype for Spring MVC web application.
http://blog.codeleak.pl
1.05k stars 478 forks source link

@Column annotation is not working #43

Closed gpcmol closed 10 years ago

gpcmol commented 10 years ago

I had to add an additional dependency to make this work.

org.hibernate.javax.persistence hibernate-jpa-2.0-api 1.0.0.Final
kolorobot commented 10 years ago

hibernate-entitymanager depends on hibernate-jpa-2.0-api and this dependency is automatically included in the project.

I run mvn package an in int final war I see hibernate-jpa-2.0-api-1.0.1.Final.jar.

I also remove M2 repository and built the project on clean system. The dependency was downloaded just fine and the project exectuted correctly.

I also checked this in IntelliJ and all works as expected.

So the issues sounds strange. I use Maven Cetnral to download, maybe you have some other configuration? Maybe you changed the pom.xml somehow?

Could you please share more details.

gpcmol commented 10 years ago

The problem I had was because of a corrupted local repository. I deleted .m2 and it's fixed.