Source code file content

Revision: 459 (of 459)

css & weld tests
» Project Revision History

» Checkout URL

arena / arena-model / src / main / java / com / kenai / puj / arena / model / entity / PujCalendarEntity.java

Size: 1287 bytes, 1 line
package com.kenai.puj.arena.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
public class PujCalendarEntity extends PujAbstractEntity {
	/** Serialization version. */
	@Transient
	private static final long serialVersionUID = PujAbstractEntity.serialVersionUID;

	@XmlAttribute
	@Id
	@Column(length = 12)
	private String phase;

	@XmlElement
	@Temporal(TemporalType.DATE)
	@Column(nullable = true)
	private Date start;

	@XmlElement
	@Temporal(TemporalType.DATE)
	@Column(nullable = true)
	private Date finish;

	public String getPhase() {
		return phase;
	}

	public void setPhase(String phase) {
		this.phase = phase;
	}

	public Date getStart() {
		return new Date(start.getTime());
	}

	public void setStart(Date start) {
		this.start = new Date(start.getTime());
	}

	public Date getFinish() {
		return new Date(finish.getTime());
	}

	public void setFinish(Date finish) {
		this.finish = new Date(finish.getTime());
	}
}
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close