Eclipse 3.1 M4 is more than just a milestone I forgot about the Christmas Cards Culture
Dec 21

TOPLink Spring Integration

Tech Add comments

The Spring and Oracle teams have put together Spring TOPLink integration.

This integration is similar to what you have with JDO, iBATIS, Hibernate, etc.

E.g.

public class MyDAOImpl extends TopLinkDaoSupport implements DAOInterface
{
public Object doTopLinkOperation()
{
return getTopLinkTemplate().execute(

new TopLinkCallback() {
public Object doInTopLink(Session session) throws TopLinkException
{
// this Session is managed externally.
// It is "injected" by the currently referenced SessionFactory
}
});
}
}

And:

public class MyDAOImpl extends TopLinkDaoSupport implements DAOInterface {
public Object doTopLinkOperation() {
return getTopLinkTemplate().findByNamedQuery("findMyself",Person.class,args);
}
}

Read more: What is the Spring TopLink Integration?

One Response to “TOPLink Spring Integration”

  1. Adeel Says:

    I am confuse with toplink support in Spring Framework . I am using toplink 11 version .We are using spring convenience methods .

    We are unable to update our records into database . Is there any problem with toplink 11 and Spring toplink libraries

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'