SimpleValueBinder.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:lams 作者:
private void applyAttributeConverter(XProperty property, AttributeConverterDefinition attributeConverterDefinition) {
    if ( attributeConverterDefinition == null ) {
        return;
    }

    LOG.debugf( "Starting applyAttributeConverter [%s:%s]", persistentClassName, property.getName() );

    if ( property.isAnnotationPresent( Id.class ) ) {
        LOG.debugf( "Skipping AttributeConverter checks for Id attribute [%s]", property.getName() );
        return;
    }

    if ( isVersion ) {
        LOG.debugf( "Skipping AttributeConverter checks for version attribute [%s]", property.getName() );
        return;
    }

    if ( property.isAnnotationPresent( Temporal.class ) ) {
        LOG.debugf( "Skipping AttributeConverter checks for Temporal attribute [%s]", property.getName() );
        return;
    }

    if ( property.isAnnotationPresent( Enumerated.class ) ) {
        LOG.debugf( "Skipping AttributeConverter checks for Enumerated attribute [%s]", property.getName() );
        return;
    }

    if ( isAssociation() ) {
        LOG.debugf( "Skipping AttributeConverter checks for association attribute [%s]", property.getName() );
        return;
    }

    this.attributeConverterDefinition = attributeConverterDefinition;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号