Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31617
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Good example of EJB interface for CRUD operations |
| Date | 2015-04-27 21:19 +0200 |
| Message-ID | <cq7ge2Fc0f0U1@mid.individual.net> (permalink) |
| References | <99e89a59-7115-4862-8679-42d670cb89dc@googlegroups.com> |
On 27.04.2015 19:00, pavelkastornii@gmail.com wrote: > Can anyone provide a good example of EJB interface for not trivial > CRUD operations, assuming the following: > > There are two or more tables (for example persons,personContacts) > with which this EJB work. There are dynamic operations (like > select(List<String> columnAliases,List<String> columnValues)) and > static operations (like select(int id)). What do you mean by "dynamic operations"? Are you talking about queries whose conditions need to be compiled at runtime? I also find the interface odd: apparently you match column names and values by index in two lists. Why are you not using a Map for that? > There full > (updatePerson(Person person,int id)) and particial operation > (updatePersonName(String name,int id)). Wouldn't you just set property "name" of Pojo Person and commit? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Good example of EJB interface for CRUD operations pavelkastornii@gmail.com - 2015-04-27 10:00 -0700
Re: Good example of EJB interface for CRUD operations Robert Klemme <shortcutter@googlemail.com> - 2015-04-27 21:19 +0200
Re: Good example of EJB interface for CRUD operations pavelkastornii@gmail.com - 2015-04-27 12:49 -0700
Re: Good example of EJB interface for CRUD operations pavelkastornii@gmail.com - 2015-05-02 00:32 -0700
csiph-web