CREATE TABLE ADDRESS (
ID int NOT NULL PRIMARY KEY,
STREET varchar (40) NULL ,
CITY varchar (20) NULL ,
STATE varchar (2) NULL ,
ZIP varchar (10) NULL
);
CREATE TABLE CUSTOMER (
ID int NOT NULL PRIMARY KEY,
LAST_NAME varchar (20) NULL ,
FIRST_NAME varchar (20) NULL ,
ADDRESS_ID int NULL ,
HAS_GOOD_CREDIT int NULL
);
它们之间的对应关系为:
Customer-has-a-Address
Address-belongs-to-Customer
出现下面的Exception:
C:\weblogic_examples\ex06_3>java com.titan.clients.Client_63
Creating Customer 1..
Creating AddressDO data object..
Setting Address in Customer 1...
Exception in thread "main" java.rmi.RemoteException: EJB Exception: ; nested exc
eption is:
javax.ejb.TransactionRolledbackLocalException: EJB Exception:
- with nested exception:
[javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: Transaction Isolation Levels are not supported.]]
java.sql.SQLException: Transaction Isolation Levels are not supported.
<
--------------- nested within: ------------------
javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: Transaction Isolation Levels are not supported.]
<
--------------- nested within: ------------------
javax.ejb.TransactionRolledbackLocalException: EJB Exception:
- with nested exception:
[javax.ejb.EJBException
- with nested exception:
[java.sql.SQLException: Transaction Isolation Levels are not supported.]]
<
C:\weblogic_examples\ex06_3>
是不是因为MySQL的原因?
还有,CMP Entity Bean的Local接口主要是用来干什么的?什么时候用?
谢谢!