org.apache.ibatis.type.Alias类的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(314)

本文整理了Java中org.apache.ibatis.type.Alias类的一些代码示例,展示了Alias类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alias类的具体详情如下:
包路径:org.apache.ibatis.type.Alias
类名称:Alias

Alias介绍

暂无

代码示例

代码示例来源:origin: hs-web/hsweb-framework

@Alias("jsonSetHandler")
@MappedTypes({Set.class})
@MappedJdbcTypes({JdbcType.VARCHAR, JdbcType.CLOB})

代码示例来源:origin: camunda/camunda-bpm-platform

public void registerAlias(Class<?> type) {
 String alias = type.getSimpleName();
 Alias aliasAnnotation = type.getAnnotation(Alias.class);
 if (aliasAnnotation != null) {
  alias = aliasAnnotation.value();
 } 
 registerAlias(alias, type);
}

代码示例来源:origin: hs-web/hsweb-framework

@Alias("jsonMapHandler")
@MappedTypes({Map.class})
@MappedJdbcTypes({JdbcType.VARCHAR, JdbcType.CLOB})

代码示例来源:origin: org.mybatis/mybatis

public void registerAlias(Class<?> type) {
 String alias = type.getSimpleName();
 Alias aliasAnnotation = type.getAnnotation(Alias.class);
 if (aliasAnnotation != null) {
  alias = aliasAnnotation.value();
 }
 registerAlias(alias, type);
}

代码示例来源:origin: hs-web/hsweb-framework

@Alias("jsonArrayHandler")
@MappedTypes({List.class})
@MappedJdbcTypes({JdbcType.VARCHAR, JdbcType.CLOB})

代码示例来源:origin: hmkcode/Java

@Alias("MyObject") 
public class MyObject {

  private int objectId;
  private String objectName;
  
  public int getObjectId() {
    return objectId;
  }

  public void setObjectId(int objectId) {
    this.objectId = objectId;
  }

  public String getObjectName() {
    return objectName;
  }
  
  public void setObjectName(String objectName) {
    this.objectName = objectName;
  }

  public String toString(){
    return "\n Object [ id: "+this.objectId+" - name: "+this.objectName+ "\n]"; 
  }
}

代码示例来源:origin: hmkcode/Spring-Framework

/**
 * Hello world!
 *
 */
@Alias("Child")
public class Child extends Parent
{
  private int childId;
    private String childName;
  
      public int getChildId() {
    return childId;
  }
  public void setChildId(int childId) {
    this.childId = childId;
  }
  public String getChildName() {
    return childName;
  }
  public void setChildName(String childName) {
    this.childName = childName;
  }
  public String toString(){
    return "Child [ id: "+this.childId+" - name: "+this.childName+" (PARENT_ID :"+this.getParentId()+") ]"; 
  }
}

代码示例来源:origin: hmkcode/Spring-Framework

@Alias("Parent")
public class Parent {

代码示例来源:origin: ucarGroup/DataLink

@Alias("userRole")
public class UserRoleInfo implements Serializable, Storable {

代码示例来源:origin: ucarGroup/DataLink

@Alias("taskException")
public class TaskExceptionInfo implements Serializable, Storable {

代码示例来源:origin: ucarGroup/DataLink

@Alias("properties")
public class SysPropertiesInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: ucarGroup/DataLink

@Alias("taskPosition")
public class TaskPositionInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: ucarGroup/DataLink

@Alias("role")
public class RoleInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: ucarGroup/DataLink

@Alias("authority")
public class RoleAuthorityInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: madvirus/spring4

@Alias("PurchaseOrder")
public class PurchaseOrder {

代码示例来源:origin: ucarGroup/DataLink

@Alias("mediaColumnMapping")
public class MediaColumnMappingInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: ucarGroup/DataLink

@Alias("delaytime")
public class TaskDelayTimeInfo implements Serializable, Storable {

代码示例来源:origin: ucarGroup/DataLink

@Alias("metaMapping")
public class MetaMappingInfo implements Serializable, Storable {

代码示例来源:origin: ucarGroup/DataLink

@Alias("taskStatusMismatchLog")
public class TaskStatusMismatchLogInfo implements Serializable, Storable {
  private Long id;

代码示例来源:origin: sivaprasadreddy/Java-Persistence-with-MyBatis3

@Alias("Student")
public class Student

相关文章