Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Alexey Loubyansky
No, it doesn't. In fact, read-only fields are not included in neither INSERT nor UPDATE. But that does not help you, probably. Marek Lange wrote: Alexey Loubyansky schrieb: You have no other choice than initializing the fields in the ejbCreate. Not all databases allows you to skip values in IN

Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Marek Lange
Alexey Loubyansky schrieb: You have no other choice than initializing the fields in the ejbCreate. Not all databases allows you to skip values in INSERT. Thanks for your answer Alex, I did it this way as there seemed to be no better solution. Setting db default values does not make sense in EJB t

Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Alexey Loubyansky
Marek Lange wrote: I have defined some default values in my database. They should be used when a table record is inserted and the corresponding field is missing in the ejb call. This was my understanding of doing this with ejbCreate(): If I want the default value to be used, the record is inser

[JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Marek Lange
I have defined some default values in my database. They should be used when a table record is inserted and the corresponding field is missing in the ejb call. This was my understanding of doing this with ejbCreate(): If I want the default value to be used, the record is inserted via an ejbCreat