#53 - Add test for protected constructor

This commit is contained in:
Rob Bygrave
2014-04-25 15:19:50 +12:00
parent bc75736780
commit 75bcbc06e1
2 changed files with 65 additions and 0 deletions
@@ -0,0 +1,38 @@
package com.avaje.tests.model.basic;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class MProtectedConstructBean {
@Id
Long id;
String name;
// private MProtectedConstructBean() {
//
// }
public MProtectedConstructBean(String name){
this.name = name;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}