还有比如说下面的程序代码
好象是EJB3。0的吧
为什么要引用@这个东东呢
请大虾解释给我听好吗
import java.io.Serializable;
import java.util.Collection;import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;/**
* @author Borys Burnayev
*/
@Entity
@Table(name = "us_state_type")
public class State implements Serializable{
private static final long serialVersionUID = -4140396555912551802L;private Integer stateId; private String code; private String description; public State() {
} public State(String code, String description) {
this.code = code;
this.description = description;
} @Id
@Column(name = "us_state_id")
public Integer getStateId() {
return this.stateId;
} public void setStateId(Integer stateId) {
this.stateId = stateId;
} @Column(name = "code")
public String getCode() {
return this.code;
} public void setCode(String code) {
this.code = code;
} @Column(name = "description")
public String getDescription() {
return this.description;
}
好象是EJB3。0的吧
为什么要引用@这个东东呢
请大虾解释给我听好吗
import java.io.Serializable;
import java.util.Collection;import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;/**
* @author Borys Burnayev
*/
@Entity
@Table(name = "us_state_type")
public class State implements Serializable{
private static final long serialVersionUID = -4140396555912551802L;private Integer stateId; private String code; private String description; public State() {
} public State(String code, String description) {
this.code = code;
this.description = description;
} @Id
@Column(name = "us_state_id")
public Integer getStateId() {
return this.stateId;
} public void setStateId(Integer stateId) {
this.stateId = stateId;
} @Column(name = "code")
public String getCode() {
return this.code;
} public void setCode(String code) {
this.code = code;
} @Column(name = "description")
public String getDescription() {
return this.description;
}
怎么就是没人能答上来了呢
是不是真的CSDN没有人了啊
怎么都不说话都学壁虎挂着呢是吗
是不是中国没有一家企业用EJB的?
啊?????????????????
在代码中就可以直接看得到与数据表的映射关系,当然了,也可以不这样用,直接写
XML配置也是可以的。从JavaEE5开始,EJB3、WebService、JPA什么的都采用了大量的注释语句。这些注释通过程序运行时,通过反射加以解析的。
人家又不会打个广告说我们用EJB了。
我想问问 我的同事们说找工作最好不要找做EJB项目的公司他们说那样的公司已经不行了
我问他们原因他们笑了一下没说
你可以告诉我吗