You can use Maven to configure your dependencies for JavaEE and your specific JPA provider, for example:
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>toplink.essentials</groupId> <artifactId>toplink-essentials</artifactId> <version>2.1-60f</version> </dependency>
- To use javax.persistence classes, you need javax.persistence dependency.
- Im using Java EE 7 but in your case, change "7.0" to "6.0"
- Toplink is my JPA provider (you can use EclipseLink, Hibernate, ...), for example:
<dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa</artifactId> <version>2.6.0</version> </dependency>
Or another provider at this link: JPA provider
- Scala JPA in netbeans
- Netbeans scala plugin - no documentation
- netbeans 7.0 and scala results in stackoverflow
- Set up Scala for NetBeans - Error
- NetBeans 8.2 External Execution Base API Missing for Scala Plugins
- Compilation Issue with Scala Netbeans Plugin
- Can NetBeans 8.0 with Scala and sbt plugins installed create sbt project?
- Netbeans type info for Scala
- how to use scala on netbeans (Windows)
- NetBeans + Scala + Maven
- The Scala way of creating Spring Data JPA repositories
- How do I set up Play Framework 2.0 in Netbeans with Scala IDE
- Introducing scala into existing netbeans java project
- Scala and JPA Results Lists
- Netbeans scala plugin problems with ant
- Best Way to Integrate Scala Test into Existing Netbeans Java Project?
- using scala jar from java project in NetBeans
- writing netbeans RCP apps on scala
- JPA and "anonymous" classes in scala
- Play framework scala debugging in netbeans
- What is the best way modeling in Scala with Spring Data JPA
- Scala Netbeans 8.1 installation configuration
- How to use a Scala IDE (Eclipse or NetBeans based) to develop a Scala Lift web application with SBT?
- Scala development for Android using NetBeans
- Grafting Scala 2.8 into a Netbeans NBAndroid Project...What steps am I missing?
- Scala Hello World program fails to compile in netbeans IDE
- How do you include files from a scala project in eclipse in a java project in netbeans
- Scala on Android using Netbeans (preferably 6.8)
- Problems with latest Scala plug-in and NetBeans 6.9.1
- Netbeans scala plugin problem , classes underlined with red line
More Query from same tag
- Scala require() equivalent in Kotlin
- Literal identifier in back ticks in scala
- Explanation needed scala fixedpoint from coursera
- Scala 2.13: Passing an explicit array value to a Scala varargs method is deprecated
- Concat column values in a dataframe
- How are these two higher-order functions different?
- sbt-assembly: deduplication found error
- Reactivemongo nested JSON structure
- pact-jvm-consumer-specs2 - missing: [error] method: GET
- How do I get an object's type and pass it along to asInstanceOf in Scala?
- Insert image file in PostgreSQL using Anorm
- How to convert DataFrame to RDD in Scala?
- Play Framework InjectedRoutesGenerator Error
- Play framework: Why does https url not work on using "sbt dist" command?
- Should I report this assertion failure? What is $asInstanceOf anyway?
- Alpakka S3 connector stream won't handle the load, throwing akka.stream.BufferOverflowException
- How do you turn a Scala list into pairs?
- How to change a column position in a spark dataframe?
- Deriving type class instances for case classes with exactly one field
- Spark SQL data frame
- Disruptor – Last handler not invoked
- How to resolve scala.MatchError when creating a Data Frame
- Scala Oracle JDBC
- What is the "Value" in Scala Enum class?
- java.lang.StackOverflowError on IntelliJ
- NetCDF: NoSuchFieldError: pdsHash when opening a file
- java.lang.RuntimeException: Multiple sources found for jdbc
- Scala .map() Information Loss (Since return type is same as elements: Set)
- Can't write generic function for shapless Generic
- Scala test dependent methods used to calculate vals are executed only once