/*
 * 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.component.cascading.collection;


/**
 * {@inheritDoc}
 *
 * @author Steve Ebersole
 */
public class Value {
	private Long id;
	private Definition definition;
	private LocalizedStrings localizedStrings = new LocalizedStrings();

	protected Value() {
	}

	public Value(Definition definition) {
		this();
		this.definition = definition;
		definition.getValues().add( this );
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Definition getDefinition() {
		return definition;
	}

	public void setDefinition(Definition definition) {
		this.definition = definition;
	}

	public LocalizedStrings getLocalizedStrings() {
		return localizedStrings;
	}

	public void setLocalizedStrings(LocalizedStrings localizedStrings) {
		this.localizedStrings = localizedStrings;
	}
}
