Results 1 to 6 of 6

Thread: Java Persistence with JDO

  1. #1
    Join Date
    Jan 2010
    Posts
    78

    Java Persistence with JDO

    We are in a new project at the persistence layer of a Java application from ODMG to JDO. Has anyone here experience with JDO? In particular I am interested in experience with commercial or non-commercial Implementation of JDO and the underlying databases. I am hoping some help from your side as soon as possible.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: Java Persistence with JDO

    I thought ODMG is a now obsolete standard that has been replaced including by JDO. JDO is the simply unmanageable by the overhead of precompilings and a bit annoying. But this is completely subjective! JDO is now also a "come a little out of fashion." News just would JPA and then including the Impl. your choice, depending on the application. As with JDO very well. JPA Support on the server at least you get too close to everywhere "out of the box".

  3. #3
    Join Date
    Dec 2008
    Posts
    161

    Re: Java Persistence with JDO

    But if you want such as JDO (any Impl.) JBoss we had to integrate into a hitherto always make the means of JCA, but it is not hard but also effort. Furthermore, the promised performance boost was with us not to feel unfortunately. We had tested this in an App running on a JBoss. Competitors were without a torque against JDO TJODO (if I'm still correct the name on the screen). The ODMG Java Binding the submitted to the Java Community Process as a basis for the Java Data Objects Specification (JDO). A Public Release of the the JDO specification is now available.

  4. #4
    Join Date
    Mar 2008
    Posts
    258

    Re: Java Persistence with JDO

    You should know more about the Java Persistence API. In its definition, has combined ideas and concepts of the leading persistence frameworks like Hibernate, Toplink and JDO, and earlier versions of EJB. All these now have an implementation JPA.El object-relational mapping (ie, the relationship between entities and tables in Java database, name, etc) is done via annotations own entity classes. No files are required XML descriptors. Transactions can also be defined as annotations JPA.

  5. #5
    Join Date
    Mar 2008
    Posts
    227

    Re: Java Persistence with JDO

    The object / relational mapping, ie the relationship between Java entities and tables of database entries is performed by entity classes themselves, so files are not required XML descriptors. Transactions can also be defined as annotations JPA. The following line of code shows a persistent and managed entity.
    Person person = new Person ();
    (...) persona.set
    entityManager.persist (person)
    When metodopersist () is called, the persistence engine will check for the existence of the object with the help of its unique identifier (usually represented in the form of primary key). If a duplicate object is found, it will launch a RuntimeException, EntityExistsException.

  6. #6
    Join Date
    Feb 2009
    Posts
    105

    Re: Java Persistence with JDO

    Entity Operations - EntityManager.getReference (class, Object)
    This method is similar to find () method takes as arguments the class name and the value of the primary key. But unlike the find () method, which returns null without can not find the body, this method will launch a EntityNotFoundException us. Another difference is that the entity extracted by this method, some details of the entity may have lazy loading (lazyloading) when accessed the first time.
    Code:
    Long pk = 1; 
    Try ( 
    Person person = EntityManager.getReference (Persona.class, pk); 
    ) 
    catch (ex EntityNotFoundException) 
    ( 
    ... 
    )

Similar Threads

  1. Persistence Module Stopped Working in Windows Vista
    By Dakshi in forum Windows Vista Performance
    Replies: 3
    Last Post: 14-01-2014, 09:41 AM
  2. Replies: 4
    Last Post: 04-09-2013, 11:04 PM
  3. Hibernate with Java Persistence API
    By Valliy in forum Software Development
    Replies: 5
    Last Post: 18-09-2010, 10:06 PM
  4. What are the Bean Persistence?
    By hatred in forum Software Development
    Replies: 5
    Last Post: 17-02-2010, 05:57 AM
  5. Link List Example in Java Sample program in Java
    By trickson in forum Software Development
    Replies: 2
    Last Post: 04-08-2009, 08:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,676,582.84681 seconds with 17 queries