/* * Copyright 2012 Harald Wellmann * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.ops4j.pax.exam.sample2.model; import java.util.Date; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Lob; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; @Entity @Table(name = "person") public class Person { @Id private int id; private String name; private String birthplace; @Lob private String biography; private String profileImageUrl; @Temporal(TemporalType.DATE) private Date birthday; @Temporal(TemporalType.TIMESTAMP) private Date lastModified; /** * @return the id */ public int getId() { return id; } /** * @param id * the id to set */ public void setId(int id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the birthplace */ public String getBirthplace() { return birthplace; } /** * @param birthplace * the birthplace to set */ public void setBirthplace(String birthplace) { this.birthplace = birthplace; } /** * @return the biography */ public String getBiography() { return biography; } /** * @param biography * the biography to set */ public void setBiography(String biography) { this.biography = biography; } /** * @return the profileImageUrl */ public String getProfileImageUrl() { return profileImageUrl; } /** * @param profileImageUrl * the profileImageUrl to set */ public void setProfileImageUrl(String profileImageUrl) { this.profileImageUrl = profileImageUrl; } /** * @return the birthday */ public Date getBirthday() { return birthday; } /** * @param birthday * the birthday to set */ public void setBirthday(Date birthday) { this.birthday = birthday; } /** * @return the lastModified */ public Date getLastModified() { return lastModified; } /** * @param lastModified * the lastModified to set */ public void setLastModified(Date lastModified) { this.lastModified = lastModified; } }