All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.deploy.BeanPropertyIdClass Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.deploy;

import io.ebean.bean.EntityBean;
import io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssocOne;

/**
 * Bean property for an IdClass embeddedId.
 */
public final class BeanPropertyIdClass extends BeanPropertyAssocOne {

  @SuppressWarnings("unchecked")
  public BeanPropertyIdClass(BeanDescriptorMap owner, BeanDescriptor descriptor, DeployBeanPropertyAssocOne deploy) {
    super(owner, descriptor, deploy);
  }

  @Override
  public void setValue(EntityBean bean, Object value) {
    bean._ebean_getIntercept().setOwnerId(value);
  }

  @Override
  public void setValueIntercept(EntityBean bean, Object value) {
    bean._ebean_getIntercept().setOwnerId(value);
  }

  @Override
  public Object getValue(EntityBean bean) {
    return bean._ebean_getIntercept().ownerId();
  }

  @Override
  public Object getValueIntercept(EntityBean bean) {
    return bean._ebean_getIntercept().ownerId();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy