/* * 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.annotations.entity; import javax.persistence.MappedSuperclass; import org.hibernate.annotations.Filter; import org.hibernate.annotations.FilterDef; import org.hibernate.annotations.ParamDef; /** * @author Sharath Reddy */ @FilterDef(name = "byName", parameters = {@ParamDef(name = "name", type = "string")}) @Filter(name = "byName", condition = ":name = name") @MappedSuperclass public class Widget { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }