public ColumnMetadata setTargetField(String tgt) { getInternal().setTargetMember(tgt); return this; } }
/** * Convenience method to get the column metadata for annotation values of a @Column. * @param annotationValues The values for the annotation * @return The MetaData for the column */ public static ColumnMetaData getColumnMetaDataForAnnotations(Map<String, Object> annotationValues) { ColumnMetaData colmd = new ColumnMetaData(); colmd.setName((String)annotationValues.get("name")); colmd.setTarget((String)annotationValues.get("target")); colmd.setTargetMember((String)annotationValues.get("targetField")); colmd.setJdbcType((String)annotationValues.get("jdbcType")); colmd.setSqlType((String)annotationValues.get("sqlType")); colmd.setLength((Integer)annotationValues.get("length")); colmd.setScale((Integer)annotationValues.get("scale")); colmd.setAllowsNull((String)annotationValues.get("allowsNull")); colmd.setDefaultValue((String)annotationValues.get("defaultValue")); colmd.setInsertValue((String)annotationValues.get("insertValue")); if (annotationValues.containsKey("position")) { colmd.setPosition((Integer)annotationValues.get("position")); } addExtensionsToMetaData(colmd, (Extension[])annotationValues.get("extensions")); return colmd; }
colmd.setName(columnName); colmd.setTarget(target); colmd.setTargetMember(targetField); colmd.setJdbcType(jdbcType); colmd.setSqlType(sqlType);
colmd.setName(columnName); colmd.setTarget(target); colmd.setTargetMember(targetField); colmd.setJdbcType(jdbcType); colmd.setSqlType(sqlType);
colmd.setName(col.name()); colmd.setTarget(col.target()); colmd.setTargetMember(col.targetMember()); colmd.setJdbcType(col.jdbcType()); colmd.setSqlType(col.sqlType());
colmd.setName(getAttr(attrs, "name")); colmd.setTarget(getAttr(attrs, "target")); colmd.setTargetMember(getAttr(attrs, "target-field")); colmd.setJdbcType(getAttr(attrs, "jdbc-type")); colmd.setSqlType(getAttr(attrs, "sql-type"));