1 19 20 package org.apache.cayenne.jpa.reflect; 21 22 import org.apache.cayenne.reflect.Accessor; 23 import org.apache.cayenne.reflect.ClassDescriptor; 24 import org.apache.cayenne.reflect.ListProperty; 25 import org.apache.cayenne.reflect.PropertyException; 26 27 class JpaToManyProperty extends ListProperty { 30 31 public JpaToManyProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, 32 Accessor accessor, String reverseName) { 33 super(owner, targetDescriptor, accessor, reverseName); 34 } 35 36 @Override 37 public void writePropertyDirectly(Object object, Object oldValue, Object newValue) 38 throws PropertyException { 39 accessor.setValue(object, newValue); 40 } 41 } 42 | Popular Tags |