[JBoss-dev] [ jboss-Bugs-607213 ] Read-Only Entity Bean

2002-09-25 Thread noreply

Bugs item #607213, was opened at 2002-09-10 04:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: vishal (attachvishal)
Assigned to: Dain Sundstrom (dsundstrom)
Summary: Read-Only Entity Bean

Initial Comment:
I am using jboss3.0.2 and i defined my entity bean as read-only in 
jbosscmp-jdbc.xml.It looks like this
entity
ejb-
nameuk.co.isesolutions.apps.ccd.customer.entity.Customer/ejb-
name
table-nameCNCUSTOMER/table-name

[b]read-onlytrue/read-only
read-time-out1000/read-
time-out[/b]

cmp-field
field-
namecnCustomer/field-name
column-
nameCNCUSTOMER/column-name
sql-
typeNUMBER(12)/sql-type
/cmp-field
cmp-
field
field-nameu_Version/field-name
column-
nameU_VERSION/column-name
sql-
typeVARCHAR2(1)/sql-type
/cmp-field

...
   cmp-field
field-
namecnaccom_Typ/field-name
column-
nameACCOM_TYP/column-name
!--read-
onlytrue/read-only
read-time-out1000/read-time-out--

sql-typeNUMBER(12)/sql-type
/cmp-field
 

/entity

and in Session bean i looked for 
Customer entity bean something like this 
Customer 
customer =  
getCustomerHome(CustomerHome.class).findByPrimaryKey(new 
CustomerPK(id));
   customerVO =  
customer.showCustomerDetails();
   /*
 the Below line 
should throw EJBException but container allows me update 
   
*/
   customer.setCnaccom_Typ(new 
Long(213));


At the jboss trace i noticed this 

09:54:13,937 DEBUG [findByPrimaryKey] Executing SQL: 
SELECT CNCUSTOMER FROM CNCUSTOMER WHERE 
CNCUSTOMER=?
09:54:13,968 DEBUG [Customer] 
Executing SQL: SELECT CNORIGIN, SURNAME, CNORIGIN, 
FORENAME, DOB_DAT, ACTIVE_FLG FROM 
CNCUSTOMER WHERE 
(CNCUSTOMER=?)
[b]09:54:14,875 DEBUG [Customer] 
Executing SQL: UPDATE CNCUSTOMER SET 
ACCOM_TYP=? WHERE CNCUSTOMER=?
09:54:14,890 
DEBUG [Customer] Rows affected = 1[/b]






--

Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-09-25 15:01

Message:
Logged In: YES 
user_id=251431

Fixed in Branch_3_0, Branch_3_2 and HEAD.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] [ jboss-Bugs-607213 ] Read-Only Entity Bean

2002-09-12 Thread noreply

Bugs item #607213, was opened at 2002-09-10 04:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: vishal (attachvishal)
Assigned to: Dain Sundstrom (dsundstrom)
Summary: Read-Only Entity Bean

Initial Comment:
I am using jboss3.0.2 and i defined my entity bean as read-only in 
jbosscmp-jdbc.xml.It looks like this
entity
ejb-
nameuk.co.isesolutions.apps.ccd.customer.entity.Customer/ejb-
name
table-nameCNCUSTOMER/table-name

[b]read-onlytrue/read-only
read-time-out1000/read-
time-out[/b]

cmp-field
field-
namecnCustomer/field-name
column-
nameCNCUSTOMER/column-name
sql-
typeNUMBER(12)/sql-type
/cmp-field
cmp-
field
field-nameu_Version/field-name
column-
nameU_VERSION/column-name
sql-
typeVARCHAR2(1)/sql-type
/cmp-field

...
   cmp-field
field-
namecnaccom_Typ/field-name
column-
nameACCOM_TYP/column-name
!--read-
onlytrue/read-only
read-time-out1000/read-time-out--

sql-typeNUMBER(12)/sql-type
/cmp-field
 

/entity

and in Session bean i looked for 
Customer entity bean something like this 
Customer 
customer =  
getCustomerHome(CustomerHome.class).findByPrimaryKey(new 
CustomerPK(id));
   customerVO =  
customer.showCustomerDetails();
   /*
 the Below line 
should throw EJBException but container allows me update 
   
*/
   customer.setCnaccom_Typ(new 
Long(213));


At the jboss trace i noticed this 

09:54:13,937 DEBUG [findByPrimaryKey] Executing SQL: 
SELECT CNCUSTOMER FROM CNCUSTOMER WHERE 
CNCUSTOMER=?
09:54:13,968 DEBUG [Customer] 
Executing SQL: SELECT CNORIGIN, SURNAME, CNORIGIN, 
FORENAME, DOB_DAT, ACTIVE_FLG FROM 
CNCUSTOMER WHERE 
(CNCUSTOMER=?)
[b]09:54:14,875 DEBUG [Customer] 
Executing SQL: UPDATE CNCUSTOMER SET 
ACCOM_TYP=? WHERE CNCUSTOMER=?
09:54:14,890 
DEBUG [Customer] Rows affected = 1[/b]






--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] [ jboss-Bugs-607213 ] Read-Only Entity Bean

2002-09-10 Thread noreply

Bugs item #607213, was opened at 2002-09-10 09:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866

Category: JBossCMP
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: vishal (attachvishal)
Assigned to: Nobody/Anonymous (nobody)
Summary: Read-Only Entity Bean

Initial Comment:
I am using jboss3.0.2 and i defined my entity bean as read-only in 
jbosscmp-jdbc.xml.It looks like this
entity
ejb-
nameuk.co.isesolutions.apps.ccd.customer.entity.Customer/ejb-
name
table-nameCNCUSTOMER/table-name

[b]read-onlytrue/read-only
read-time-out1000/read-
time-out[/b]

cmp-field
field-
namecnCustomer/field-name
column-
nameCNCUSTOMER/column-name
sql-
typeNUMBER(12)/sql-type
/cmp-field
cmp-
field
field-nameu_Version/field-name
column-
nameU_VERSION/column-name
sql-
typeVARCHAR2(1)/sql-type
/cmp-field

...
   cmp-field
field-
namecnaccom_Typ/field-name
column-
nameACCOM_TYP/column-name
!--read-
onlytrue/read-only
read-time-out1000/read-time-out--

sql-typeNUMBER(12)/sql-type
/cmp-field
 

/entity

and in Session bean i looked for 
Customer entity bean something like this 
Customer 
customer =  
getCustomerHome(CustomerHome.class).findByPrimaryKey(new 
CustomerPK(id));
   customerVO =  
customer.showCustomerDetails();
   /*
 the Below line 
should throw EJBException but container allows me update 
   
*/
   customer.setCnaccom_Typ(new 
Long(213));


At the jboss trace i noticed this 

09:54:13,937 DEBUG [findByPrimaryKey] Executing SQL: 
SELECT CNCUSTOMER FROM CNCUSTOMER WHERE 
CNCUSTOMER=?
09:54:13,968 DEBUG [Customer] 
Executing SQL: SELECT CNORIGIN, SURNAME, CNORIGIN, 
FORENAME, DOB_DAT, ACTIVE_FLG FROM 
CNCUSTOMER WHERE 
(CNCUSTOMER=?)
[b]09:54:14,875 DEBUG [Customer] 
Executing SQL: UPDATE CNCUSTOMER SET 
ACCOM_TYP=? WHERE CNCUSTOMER=?
09:54:14,890 
DEBUG [Customer] Rows affected = 1[/b]






--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=376685aid=607213group_id=22866


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development