Package javax.persistence

Examples of javax.persistence.JoinColumn.updatable()


        // check for manually defined joins
        BeanTable beanTable = prop.getBeanTable();
        JoinColumn joinColumn = get(prop, JoinColumn.class);
        if (joinColumn != null) {
          prop.getTableJoin().addJoinColumn(false, joinColumn, beanTable);
          if (!joinColumn.updatable()) {
            prop.setDbUpdateable(false);
          }
          if (!joinColumn.nullable()) {
            prop.setNullable(false);
          }
View Full Code Here


        JoinColumns joinColumns = annotatedElement.getAnnotation(JoinColumns.class);
        if (joinColumns != null) {
          return;
        }
      } else {
        if (joinColumn.insertable() && joinColumn.updatable()) {
          EntityType<?> referencedEntityType = metaModel.entity(jpaAttribute.getJavaType());
          for (Attribute<?, ?> referencedAttribute : referencedEntityType.getAttributes()) {
            AnnotatedElement annotatedElement2 = (AnnotatedElement) referencedAttribute.getJavaMember();
            if (annotatedElement2 != null) {
              Column referencedColumn = annotatedElement2.getAnnotation(Column.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.