GetId是怎么写的?
Table.GetId()没有参数?你添了一条纪录不假,但是你要取那一条记录呀?我是看不出来。
Table.GetId()没有参数?你添了一条纪录不假,但是你要取那一条记录呀?我是看不出来。
解决方案 »
- tomcat连接mysql需要的jar包有哪些
- 两个请求同时到达
- 刚刚接触j2EE开发 有点不明白的
- tomcat启动出错Exception starting filter structs2
- 请教一个displaytag的问题
- 关于“InvocationTargetException”,专家进来看看
- 用eclipse建了一个BBS的project,不能发布到tomcat上
- 关于用了Hibernate之后如何进行SQL优化的问题
- 只知道一个节点的名称,不知道它是哪个节点的字节点,如何获的该节点的值?
- 问个struts2文件上传限制扩展名称的问题。。。谢谢
- 请高手们介绍那里有XML的中文版电子图书下载?
- 清高手介绍一个Java+XML的例子!!!!!
to luodi
这是bean类的代码,public class TableBean implements EntityBean
{
EntityContext entityContext;
public Short id;
public String name;
public TablePK ejbCreate(Short id, String name) throws CreateException, RemoteException
{
this.id = id;
this.name = name;
return null;
}
public void ejbPostCreate(Short id, String name) throws CreateException, RemoteException
{
}
public void ejbLoad() throws RemoteException
{
}
public void ejbStore() throws RemoteException
{
}
public void ejbRemove() throws RemoveException, RemoteException
{
}
public void ejbActivate() throws RemoteException
{
}
public void ejbPassivate() throws RemoteException
{
}
public void setEntityContext(EntityContext entityContext) throws RemoteException
{
this.entityContext = entityContext;
}
public void unsetEntityContext() throws RemoteException
{
entityContext = null;
}
public Short getId()
{
return id;
}
public String getName()
{
return name;
}
}