The question may seem stupid, but I can't ...!

enter image description here

There is such a project. When deploy error pops up:

"Caused by: org.hibernate.MappingException: Could not determine the type for: java.util.Set, at table: Files, for columns: [org.hibernate.mapping.Column (columns)]"

In essence, there is a field in File.java:

private Set<FileColumn> columns; 

So it seemed to me that you need to add something like:

 <dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.0-api</artifactId> <scope>provided</scope> </dependency> 

I didn’t manage to add it to the dependecies section of the "pom.xml" section. When compiled, Maven says:

"'dependencies.dependency.version' for org.hibernate.javax.persistence: hibernate-jpa-2.0-api: jar is missing"

Question: how to add (and most importantly where exactly) this jar-nickname? Describe the sequence of manipulations in IDEA. You are welcome!!!

    1 answer 1

    The error occurs because you did not specify the version:

     <dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.0-api</artifactId> <version>1.0.1.Final</version> </dependency> 
    • I apologize for not unsubscribing ... yes, right, I have already fixed it myself ... now an error occurs when compiling the maven CSV_Client module: "compilation error cannot find symbol" The fact is that there is a class in File.java " File ", and in Container.java there is a function with a parameter of type File. The error log says that it does not understand this File class. They are in the same package, so why the error occurs? - nightin_gale
    • This is already a topic for a separate question, if you add the error of a stroke, - we will understand - jmu
    • Thanks for the suggestion, but already figured out ... it was necessary to add a dependency to the CSV module in the pom-nickname of the CSV_Client module! - nightin_gale