package org.sfm.beans;

import java.util.Date;

import javax.persistence.Column;

import org.sfm.beans.DbObject.Type;

public class DbObjectWithAlias {
	
	private long idWithAlias;
	private String nameWithAlias;
	private String emailWithAlias;
	private Date creationTimeWithAlias;
	
	private Type typeOrdinalWithAlias;
	private Type typeNameWithAlias;
	
	@Column(name="id")
	public long getIdWithAlias() {
		return idWithAlias;
	}
	public void setIdWithAlias(long idWithAlias) {
		this.idWithAlias = idWithAlias;
	}
	
	@Column(name="name")
	public String getNameWithAlias() {
		return nameWithAlias;
	}
	public void setNameWithAlias(String nameWithAlias) {
		this.nameWithAlias = nameWithAlias;
	}
	@Column(name="email")
	public String getEmailWithAlias() {
		return emailWithAlias;
	}
	public void setEmailWithAlias(String emailWithAlias) {
		this.emailWithAlias = emailWithAlias;
	}
	@Column(name="creation_time")
	public Date getCreationTimeWithAlias() {
		return creationTimeWithAlias;
	}
	public void setCreationTimeWithAlias(Date creationTimeWithAlias) {
		this.creationTimeWithAlias = creationTimeWithAlias;
	}
	@Column(name="type_ordinal")
	public Type getTypeOrdinalWithAlias() {
		return typeOrdinalWithAlias;
	}
	public void setTypeOrdinalWithAlias(Type typeOrdinalWithAlias) {
		this.typeOrdinalWithAlias = typeOrdinalWithAlias;
	}
	@Column(name="type_name")
	public Type getTypeNameWithAlias() {
		return typeNameWithAlias;
	}
	public void setTypeNameWithAlias(Type typeNameWithAlias) {
		this.typeNameWithAlias = typeNameWithAlias;
	}
	@Override
	public String toString() {
		return "DbObjectWithAlias [idWithAlias=" + idWithAlias
				+ ", nameWithAlias=" + nameWithAlias + ", emailWithAlias="
				+ emailWithAlias + ", creationTimeWithAlias="
				+ creationTimeWithAlias + ", typeOrdinalWithAlias="
				+ typeOrdinalWithAlias + ", typeNameWithAlias="
				+ typeNameWithAlias + "]";
	}
	
	
	
}

@@ -154,17 +154,37 @@
 lias %7B%0D%0A
-%09
+%0D%0A%09@Column(name=%22id%22)
 %0D%0A%09priva
@@ -308,19 +308,18 @@
 Alias;%0D%0A
-%09
 %0D%0A
+
 %09private
@@ -385,32 +385,10 @@
 s;%0D%0A
-%09%0D%0A%09@Column(name=%22id%22)
 %0D%0A
+
 %09pub
@@ -531,17 +531,16 @@
 s;%0D%0A%09%7D%0D%0A
-%09
 %0D%0A%09@Colu

add test on column annotation on field