All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.j2mvc.framework.mapping.PrimaryKey Maven / Gradle / Ivy

Go to download

强烈建议使用J2mvc 2.1以后的版本。 version 2.1.01 1.更换JSON依赖包. version 2.1.02 1.移除com.j2mvc.StringUtils.getUtf8()方法调用. 更改为getCharset() version 2.1.03 1.更新JNDI连接设置 version 2.1.04 1.修改works.xml配置url-pkg-prefixes改为pkg

There is a newer version: 2.1.12
Show newest version
package com.j2mvc.framework.mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 
 * 主键注解类
 * 
 * 2014-2-24 创建@杨朔
 */
@Retention(RetentionPolicy.RUNTIME) 
public @interface PrimaryKey {
	// 主键名称
	public String name() default "id";
	// 自动增长
	public boolean autoIncrement() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy