FileDocCategorySizeDatePackage
Image.javaAPI DocHibernate 3.2.51057Fri Nov 10 22:12:38 GMT 2006org.hibernate.test.interceptor

Image.java

package org.hibernate.test.interceptor;

public class Image {

	private Long id;
	private String name;
	private Details details;

	public Details getDetails() {
		return details;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setDetails(Details details) {
		this.details = details;
	}

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

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return "Image/" + ( details == null ? "no details" : details.toString() );
	}

	public static class Details {
		private long perm1 = -1; // all bits turned on.
		private String comment;

		protected long getPerm1() {
			return this.perm1;
		}

		protected void setPerm1(long value) {
			this.perm1 = value;
		}

		public String getComment() {
			return comment;
		}

		public void setComment(String comment) {
			this.comment = comment;
		}

		public String toString() {
			return "Details=" + perm1;
		}
	}

}