Example usage for org.hibernate.collection.internal PersistentList addAll

List of usage examples for org.hibernate.collection.internal PersistentList addAll

Introduction

In this page you can find the example usage for org.hibernate.collection.internal PersistentList addAll.

Prototype

@Override
    @SuppressWarnings("unchecked")
    public boolean addAll(Collection values) 

Source Link

Usage

From source file:com.corvid.json.hibernate.usertype.JsonListUserType.java

License:Apache License

@Override
public Object replaceElements(Object original, Object target, CollectionPersister persister, Object owner,
        @SuppressWarnings("rawtypes") Map copyCache, SessionImplementor session) throws HibernateException {

    PersistentList originalList = cast(original);
    PersistentList targetList = cast(target);
    targetList.clear();/*from   ww w .  ja v a2 s.c o m*/
    targetList.addAll(originalList);

    return target;
}