Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP with Triggers  RSS feed

 
Steve X. Mann
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Been using weblogic/oracle and letting weblogic autogen my primary keys for entity beans. Need to use triggers now though because table may take inserts from other types of apps.
Can I get cmp to work with triggers? I've seen some questions and suggestions, but no definitive how-to or yes/no answer.
Thanks!
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean "make it work with triggers". The EJB's should not care if triggers execute on insert -- the application server won't get involved. Can you be more specific about what you want to do?
Kyle
 
Steve X. Mann
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specifically I like to:
- create rows in my table using a CMP entity bean
- use a trigger and oracle sequence to maintain the pkval of the table
- acquire the pk value of the new row in the bean
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!