/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.cfg.persister; import java.util.Set; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; import org.hibernate.annotations.Persister; import org.hibernate.persister.entity.SingleTableEntityPersister; /** * @author Emmanuel Bernard <emmanuel@hibernate.org> */ @Entity @Persister( impl = SingleTableEntityPersister.class) public class Portal { @Id public Long getId() { return id; } public void setId(Long id) { this.id = id; } private Long id; @OneToMany public Set<Window> getWindows() { return windows; } public void setWindows(Set<Window> windows) { this.windows = windows; } private Set<Window> windows; }