浏览代码

--update column name;

zzy.zhiyuan.foxmail 8 年之前
父节点
当前提交
becafb772b

+ 2 - 1
src/main/java/com/ekexiu/portal/basepo/BaseOrganization.java

@ -2,6 +2,7 @@ package com.ekexiu.portal.basepo;
2 2
3 3
import org.jfw.apt.orm.annotation.entry.Column;
4 4
import org.jfw.apt.orm.annotation.entry.Table;
5
import org.jfw.apt.orm.core.defaultImpl.StringHandler;
5 6
import org.jfw.apt.orm.core.enums.DE;
6 7
7 8
@Table(create=false)
@ -25,7 +26,7 @@ public class BaseOrganization {
25 26
	public void setId(String id) {
26 27
		this.id = id;
27 28
	}
28
	@Column(value=DE.string_de,dbType="VARCHAR(100)",renewable=false)
29
	@Column(handlerClass=StringHandler.class,dbType="VARCHAR(100)",nullable=false,renewable=false)
29 30
	public String getName() {
30 31
		return name;
31 32
	}

+ 0 - 2
src/main/java/com/ekexiu/portal/dao/OrgDao.java

@ -7,7 +7,6 @@ import java.util.List;
7 7
import org.jfw.apt.annotation.Nullable;
8 8
import org.jfw.apt.orm.annotation.dao.Column;
9 9
import org.jfw.apt.orm.annotation.dao.DAO;
10
import org.jfw.apt.orm.annotation.dao.Dynamic;
11 10
import org.jfw.apt.orm.annotation.dao.method.From;
12 11
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
13 12
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
@ -40,7 +39,6 @@ public interface OrgDao {
40 39
	@From(Organization.class)
41 40
	int updateAuthStatus(Connection con,String id,@Set String authStatus)throws SQLException;
42 41
	
43
	@Dynamic
44 42
	@Update
45 43
	int update(Connection con,Organization org)throws SQLException;
46 44
	

+ 2 - 2
src/main/java/com/ekexiu/portal/po/Organization.java

@ -117,14 +117,14 @@ public class Organization extends BaseOrganization implements CreateTimeSupporte
117 117
	public void setQualification(String qualification) {
118 118
		this.qualification = qualification;
119 119
	}
120
	@Column(value=DE.SingleChar,renewable=false)
120
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(1)",renewable=false)
121 121
	public String getIsJoin() {
122 122
		return isJoin;
123 123
	}
124 124
	public void setIsJoin(String isJoin) {
125 125
		this.isJoin = isJoin;
126 126
	}
127
	@Column(value=DE.SingleChar,renewable=false)
127
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(1)",renewable=false)
128 128
	public String getAuthStatus() {
129 129
		return authStatus;
130 130
	}