Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] does a similar function like "void Session.load(Object object, Serializable id) " in Hibernate

Hi all,

We migrate the project from hibernate to eclipselink.
But we use the hibernate load api a lot. It can directly change the toLoaded Entity ,not need to set the return value to the reference.

    void org.hibernate.Session.load(Object object, Serializable id) throws HibernateException
        Read the persistent state associated with the given identifier into the given transient instance.
        Parameters:
        object an "empty" instance of the persistent class
        id a valid identifier of an existing persistent instance of the class
        Throws:
        HibernateException


Does the eclipselink have the similar soluction,
  1.  should I need to change all the place
  2. use beanutil or java reflect to copy the properties 
  3. or any other soluction?





--
Thanks & Best Regards,
Ajax

Back to the top