cannot switch from hypersonic to oracle
itteerde Aug 17, 2004 9:20 AMi configured a oracle DataSource that works (tested it with a servlet) and tried to map an EntityBean to my database but during the deployment it continues to create the hypersonic table. any help appreciated
jboss: 3.2.5
jdk/jre: 1.4.2_5
xdoclet: 1.2/jboss-ide for eclipse 3.0
/*
* Project name : ofas
* File name : Server.java
*
* Created on Aug 17, 2004
* Author : itteerde
*
* History:
*
* Last Editor Date Comment
* ----------------------------------------------------------------------------
* itteerde Aug 17, 2004 created
*/
package com.bbraun.ofas.persistence.permission.ejb;
import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;
/**
* @ejb.bean name="Permission"
* display-name="Name for Permission"
* description="Description for Permission"
* jndi-name="ejb/Permission"
* type="CMP"
* cmp-version="2.x"
* view-type="local"
*
* @ejb.bean primkey-field = "guid"
*
* @todo should extend AbstractEntityBean
*
* @jboss.persistence
* datasource = "ofas"
* table-name = "ofas.ofas_permissions"
*
*
*/
public abstract class PermissionBean implements EntityBean {
/**
*
*/
public PermissionBean() {
super();
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
*/
public void setEntityContext(EntityContext ctx)
throws EJBException,
RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#unsetEntityContext()
*/
public void unsetEntityContext() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbRemove()
*/
public void ejbRemove()
throws RemoveException,
EJBException,
RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbActivate()
*/
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbPassivate()
*/
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbLoad()
*/
public void ejbLoad() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbStore()
*/
public void ejbStore() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
/**
* Getter for CMP Field guid
*
* @ejb.pk-field
* @ejb.persistent-field
* @ejb.interface-method view-type="local"
*
* @jboss.column-name name = "ID"
* @jboss.jdbc-type type = "VARCHAR"
*/
public abstract String getGuid();
/**
* Setter for CMP Field guid
*
* @ejb.interface-method view-type="local"
*/
public abstract void setGuid(String value);
/**
* Getter for CMP Field name
*
*
* @ejb.persistent-field
* @ejb.interface-method view-type="local"
*
* @jboss.column-name name = "NAME"
* @jboss.jdbc-type type = "VARCHAR"
*/
public abstract String getName();
/**
* Setter for CMP Field name
*
* @ejb.interface-method view-type="local"
*/
public abstract void setName(String value);
}