[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Where is the javax.persistence API ?

Hi Tom,

I'm following the JPA 2.0 spec evolution, so I'd really appreciate if there was a way to get and use the first alpha versions of the JPA API. If you could put it in the Maven repository that would be a very good help for me. I'm writing an article about EclipseLink, Maven, MySQL and Derby (+unit testing with JUnit and DBUnit). So it would be great to start with the right repositories and version of APIs.

Let me know if it's possible to have it.

Thanks,
Antonio

2008/9/16 Tom Ware <tom.ware@xxxxxxxxxx>
Hi Antonio,

 You make a good point.  As the JPA 2.0 RI evolves the classes will have to be made available.

 At the moment in EclipseLink, we publish the javax.persistence classes for JPA 1.0 in a jar/Eclipse plug-in format, but not in our maven repository.  The current plan is to do the same with the next versions of EclipseLink, but if there is demand, adding the javax.persistence APIs to our maven repository should not be a big problem.

-Tom

Antonio Goncalves wrote:
Thanks, that works. But this raises another questions.
 EclipseLink is the JPA 2.0 RI, so I expect it to change quickly and follow the JPA 2.0 work in progress, add new APIs and so on. If I want to test the future changes of JPA 2.0 I would think that EclipseLink would be more up to date than anything else. If I use the javax.persistence API from the central ibiblio, will it follow the novelties of EclipseLink ? or am I stuck to JPA 1.0 ?
Antonio
2008/9/15 Andreas König <andreas.koenig@xxxxxxxxxx <mailto:andreas.koenig@xxxxxxxxxx>>


   A repo for the persistence api can be found here:

   <repository>
          <id>central</id>
          <name>central ibiblio repository</name>
          <url>http://repo1.maven.org/maven2</url>
   </repository>

   Antonio Goncalves wrote:

       Hi,
        I want to compile a simple JPA HelloWorld example with
       EclipseLink and Maven. I've looked at the Maven repository
       (http://eclipse.ialto.org/rt/eclipselink/maven.repo/org/eclipse/persistence/)
       but I can't find the javax.persistence package (meaning it can't
       find @Entity, @Id...).
        I've played with my pom.xml, changed artifactId and so on, but
       still doesn't work. Any idea ?
        Thanks,
       Antonio
         my pom.xml
         <project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
       http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
          <groupId>org.hello.samples</groupId>
          <artifactId>jpa</artifactId>
          <version>1.0</version>
          <packaging>jar</packaging>
          <name>jpa samples</name>
          <description>Samples showing how to use JPA 2.0</description>
            <dependencies>
              <dependency>
                  <groupId>org.eclipse.persistence</groupId>
                  <artifactId>eclipselink</artifactId>
                  <version>1.0.1</version>
              </dependency>
          </dependencies>
            <repositories>
              <repository>
                  <id>EclipseLink Repo</id>
                  <name>EclipseLink Repository</name>
                        <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo
       <http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo>        <http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo>></url>



              </repository>
          </repositories>

          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <inherited>true</inherited>
                      <configuration>
                          <source>1.6</source>
                          <target>1.6</target>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
       </project>


       ------------------------------------------------------------------------

       _______________________________________________
       eclipselink-users mailing list
       eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>

       https://dev.eclipse.org/mailman/listinfo/eclipselink-users



   --    Andreas König
   Developer

   andreas.koenig@xxxxxxxxxx <mailto:andreas.koenig@xxxxxxxxxx>


   serie a logistics solutions AG
   Hülchrather Straße 15
   D-50670 Köln

   T +49 221 500 60 7-21
   F +49 221 500 56 85

   Vorstand: Axel Löhr, Erwin Soldo
   Aufsichtsrat: Adam Musialik (Vors.), Fritz Pleitgen, Hans Jörg Klofat

   Amtsgericht Köln HRB 61725

   www.serie-a.de <http://www.serie-a.de/>


   _______________________________________________
   eclipselink-users mailing list
   eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx> Antonio Goncalves (antonio.goncalves@xxxxxxxxx <mailto:antonio.goncalves@xxxxxxxxx>)
Software architect

Paris JUG leader : www.parisjug.org <http://www.parisjug.org>
Web site : www.antoniogoncalves.org <http://www.antoniogoncalves.org>
Blog: jroller.com/agoncal <http://jroller.com/agoncal>
LinkedIn: www.linkedin.com/in/agoncal <http://www.linkedin.com/in/agoncal>



------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



--
--
Antonio Goncalves (antonio.goncalves@xxxxxxxxx)
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal