package edu.northwestern.bioinformatics.studycalendar.domain;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.OrderBy;
import javax.persistence.Transient;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Padmaja Vedula
 */
@Entity
@Table
@GenericGenerator(name="id-generator", strategy = "native",
    parameters = {
        @Parameter(name="sequence", value="seq_login_audits_id")
    }
)
public class LoginAudit extends AbstractDomainObject {
    private String ipAddress;
    private String userName;
    private Date time;
    private String loginStatus;
   
    // business methods
        
    // bean methods
    @Column(name = "ip_address")
    public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	@Column(name = "login_status")
	public String getLoginStatus() {
		return loginStatus;
	}

	public void setLoginStatus(String loginStatus) {
		this.loginStatus = loginStatus;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}

@@ -506,17 +506,21 @@
 ava.
-util.Date
+sql.Timestamp
 ;%0D%0Ai
@@ -884,20 +884,25 @@
 private 
-Date
+Timestamp
  time;%0D%0A
@@ -1373,20 +1373,25 @@
 %09public 
-Date
+Timestamp
  getTime
@@ -1443,12 +1443,17 @@
 ime(
-Date
+Timestamp
  tim

changed date to timestamp