Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to build sorm for scala 2.10.1
    primarykey
    data
    text
    <p>Any idea how to build <a href="http://sorm-framework.org/" rel="nofollow">SORM</a> for scala 2.10.1 I am trying to generate a jar file that I can use in my eclipse project. </p> <p>Here is my code </p> <pre><code>import sorm._ case class Coffee(name: String, supplier: Supplier, price: Double, sales: Int, total: Int) case class Supplier(name: String, street: String, city: String, state: String, zip: String) object Db extends Instance( entities = Set(Entity[Coffee](),Entity[Supplier])),url="jdbc:mysql://localhost:3306/db123") object sormtest { import Db._ def main(args: Array[String]): Unit = { val supplier1 = Supplier("Acme, Inc.", "99 Market Street", "Groundsville", "CA", "95199") val supplier2 = Supplier("Superior Coffee", "1 Party Place", "Mendocino", "CA", "95460") val supplier3 = Supplier("The High Ground", "100 Coffee Lane", "Meadows", "CA", "93966") Db.save(supplier2) }}` </code></pre> <p>I am getting the following error :</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/impl/AbstractPoolBackedDataSource at sorm.core.Connector.&lt;init&gt;(Connector.scala:16) at sorm.Instance$Initialization.&lt;init&gt;(Instance.scala:209) at sorm.Instance.&lt;init&gt;(Instance.scala:29) at Db$.&lt;init&gt;(sormtest.scala:8) at Db$.&lt;clinit&gt;(sormtest.scala) at sormtest$.main(sormtest.scala:27) at sormtest.main(sormtest.scala) Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 7 more </code></pre> <p>I have already downloaded the jar file from here <a href="http://mvnrepository.com/artifact/org.sorm-framework/sorm/0.3.8" rel="nofollow">http://mvnrepository.com/artifact/org.sorm-framework/sorm/0.3.8</a></p> <p>EDIT: The Maven repository lists a number of jar files to be included. Once I added them that solved my problem. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload