1 package org.hibernate.tuple; 3 4 import org.hibernate.type.Type; 5 6 import java.io.Serializable ; 7 8 13 public abstract class Property implements Serializable { 14 private String name; 15 private String node; 16 private Type type; 17 18 27 protected Property(String name, String node, Type type) { 28 this.name = name; 29 this.node = node; 30 this.type = type; 31 } 32 33 public String getName() { 34 return name; 35 } 36 37 public String getNode() { 38 return node; 39 } 40 41 public Type getType() { 42 return type; 43 } 44 45 public String toString() { 46 return "Property(" + name + ':' + type.getName() + ')'; 47 } 48 49 } 50 | Popular Tags |