Search in sources :

Example 21 with DfPropertyDesc

use of org.dbflute.helper.beans.DfPropertyDesc in project dbflute-core by dbflute.

the class TnDBMetaPropertyTypeFactory method isPersistent.

protected boolean isPersistent(TnPropertyType propertyType) {
    final String propertyName = propertyType.getPropertyName();
    final DfPropertyDesc propertyDesc = propertyType.getPropertyDesc();
    return (hasDBMeta() && _dbmeta.hasColumn(propertyName)) || hasColumnAnnotation(propertyDesc);
}
Also used : DfPropertyDesc(org.dbflute.helper.beans.DfPropertyDesc)

Example 22 with DfPropertyDesc

use of org.dbflute.helper.beans.DfPropertyDesc in project dbflute-core by dbflute.

the class TnBeanMetaDataImpl method setupIdentifierGenerator.

protected void setupIdentifierGenerator(TnPropertyType pt) {
    // only called in the initialize() process
    final DfPropertyDesc pd = pt.getPropertyDesc();
    final String propertyName = pt.getPropertyName();
    final String idType = _beanAnnotationReader.getId(pd);
    final TnIdentifierGenerator generator = TnIdentifierGeneratorFactory.createIdentifierGenerator(pt, idType);
    _identifierGeneratorList.add(generator);
    _identifierGeneratorsByPropertyName.put(propertyName, generator);
}
Also used : DfPropertyDesc(org.dbflute.helper.beans.DfPropertyDesc) TnIdentifierGenerator(org.dbflute.s2dao.identity.TnIdentifierGenerator)

Aggregations

DfPropertyDesc (org.dbflute.helper.beans.DfPropertyDesc)22 DfBeanDesc (org.dbflute.helper.beans.DfBeanDesc)10 ArrayList (java.util.ArrayList)4 Map (java.util.Map)4 List (java.util.List)3 DfBeanIllegalPropertyException (org.dbflute.helper.beans.exception.DfBeanIllegalPropertyException)3 MapParameterBean (org.dbflute.twowaysql.pmbean.MapParameterBean)3 TnIdentifierGenerator (org.dbflute.s2dao.identity.TnIdentifierGenerator)2 TnPropertyType (org.dbflute.s2dao.metadata.TnPropertyType)2 Field (java.lang.reflect.Field)1 Method (java.lang.reflect.Method)1 Timestamp (java.sql.Timestamp)1 Set (java.util.Set)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Entity (org.dbflute.Entity)1 DBMeta (org.dbflute.dbmeta.DBMeta)1 DfBeanMethodNotFoundException (org.dbflute.helper.beans.exception.DfBeanMethodNotFoundException)1 TnBeanMetaData (org.dbflute.s2dao.metadata.TnBeanMetaData)1 TnModifiedPropertySupport (org.dbflute.s2dao.metadata.TnModifiedPropertySupport)1 TnRelationPropertyType (org.dbflute.s2dao.metadata.TnRelationPropertyType)1