SSH instance (4), ssh instance
The Clas. hbm. xml file is as follows:
<? Xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE hibernate-mapping PUBLIC "-// Hibernate/Hibernate DTD ing DTD 3.0 // EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
The Clas. java file is as follows:
Package com. school. entity; public class Clas {// course id private int id; // Course name private String name; // course description private String comment; // default constructor public Clas () {}// constructor that contains all attributes public Clas (int id, String name, String comment) {super (); this. id = id; this. name = name; this. comment = comment;} public int getId () {return id;} public void setId (int id) {this. id = id;} public String getName () {return name;} public void setName (String name) {this. name = name;} public String getComment () {return comment;} public void setComment (String comment) {this. comment = comment ;}}