on 03-13-2008 2:56 AM
Hi all
I 'm now prefer to create an Update query in the entity bean,
under the EJB Methode there are folders like this: Create Method / Finder Methode / Home Method / Select Method.
where can i create the Update query and how about the syntax
Like this: update <table-name> b set b.status = 'done' where b.ID like ?1 ???(this query is invalide)
Edited by: bo wang on Mar 13, 2008 3:57 AM
Hi,
U can create the update query in business methods.
steps:
Click on folder Business Methods.
Than click on add button below.
then specify any para meter or return type if required.
Click on save.
This method will be added in the implimentation tab.
go on the implementation tab and write update query between @@begin
@@end block of that method
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pathan,
I followed your instruction:
Click on folder Business Methods.
Than click on add button below.
then specify any para meter or return type if required.
Click on save.
but after i Click on save, the project cann't save the update method any more, so when change to the implementation tab where i can not find the update method i created.
it seemed that it was unavilable to create an update method under the folder Business Methods
here is under the Entity Bean but not the Session Bean.
Thanks.
Edited by: bo wang on Mar 18, 2008 6:50 AM
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.