mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
26 lines
801 B
Java
26 lines
801 B
Java
package io.ebeaninternal.server.deploy;
|
|
|
|
import io.ebean.SqlUpdate;
|
|
import io.ebean.bean.EntityBean;
|
|
import io.ebeaninternal.api.json.SpiJsonReader;
|
|
import io.ebeaninternal.server.deploy.meta.DeployBeanPropertySimpleCollection;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class BeanPropertySimpleCollection<T> extends BeanPropertyAssocMany<T> {
|
|
|
|
public BeanPropertySimpleCollection(BeanDescriptor<?> descriptor, DeployBeanPropertySimpleCollection<T> deploy) {
|
|
super(descriptor, deploy);
|
|
}
|
|
|
|
@Override
|
|
public void bindElementValue(SqlUpdate insert, Object value) {
|
|
insert.setNextParameter(value);
|
|
}
|
|
|
|
@Override
|
|
public Object jsonReadCollection(SpiJsonReader readJson, EntityBean parentBean) throws IOException {
|
|
return elementDescriptor.jsonReadCollection(readJson, parentBean);
|
|
}
|
|
}
|