Skip to content

Migration guide to 1.2.1

rodolfoliviero edited this page Oct 18, 2011 · 1 revision

Migrate to 1.2.1 is very simple you just need to do two little manual steps.

1 - Update the method 'update' on Repository class.

Your code should be like that:

public void update(T entity) {
    entityManager.merge(entity);
}

Update the code to:

public T update(T entity) {
    return entityManager.merge(entity);
}

2 - Find your repositories interfaces and update the method 'update'. For exemple if you have an interface ClientRepository your code should be like that:

void update(Client entity);

Update the code to:

Client update(Client entity);

Your are done!

Clone this wiki locally