Unable to start debugging on the web server - CHAPTER 6 n MAPPING WITH ANNOTATIONS 135 n

CHAPTER 6 n MAPPING WITH ANNOTATIONS 135 n MAPPING WITH ANNOTATIONS 135 private int id; private String name; private Set books = new HashSet(); private AuthorAddress address; // Constructors… protected Author() { } public Author(String name, AuthorAddress address) { this.name = name; this.address = address; } // Getters… @Id @GeneratedValue public int getId() { return id; } public String getName() { return name; } @ManyToMany(mappedBy = “authors”) public Set getBooks() { return books; } @Embedded @AttributeOverrides({ @AttributeOverride(name=”address”,column=@Column(name=”ADDR”)), @AttributeOverride(name=”country”,column=@Column(name=”NATION”)) }) public AuthorAddress getAddress() { return this.address; } // Setters… public void setId(int id) { this.id = id; }
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision mysql5 web hosting services

Leave a Reply