Good Afternoon folks,

I am a newbie to Clojure, coming from CL, with very little Java
background.
I am trying to use the 'javax.persistence' libraries, but i just cant
seem to import it properly

for e.g
(import '(javax.persistence Persistence)
gives a
java.lang.ClassNotFoundException: javax.persistence.Persistence
(NO_SOURCE_FILE:0) error

How will i import javax.persistence properly?

According to the Java spec
http://java.sun.com/javaee/5/docs/api/javax/persistence/package-summary.html

The package has interfaces EntityManager and EntityManagerFactory.

How would i define a class that implements this in clojure?

(ns com.demo.HelloWorld
  (:gen-class
   :extends [javax.persistence]))

also

How can i write this effectively in clojure

EntityManagerFactory emf =
                Persistence.createEntityManagerFactory("helloworld");

Any help would be appreciated

Thanks and regards
Adityo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to