Hi Michael,

Following is a sample method signature

public TaskHeaderlDto getByProjectIdMatNoAndVersion(int projectID, String
materialNo, String version)

All the three input fields are required to find the unique header record.

I tried using the uriInfo.getCustomQueryOptions() and passed the inputs as
a query String and is working. Again is this a right approach. Is there any
better option?

We also have some EJB's for execution of Business Rules. A few of these
rules are to be executed from a UI5 view. And these rules requires a
minimum of 4 parameters for execution. For passing mutiple inputs, do we
have any option to pass something like an object containing all parameters?

Regards,
Aparnna Prasad



On 22 January 2014 10:18, Aparnna Prasad <[email protected]> wrote:

> Hi
>
> I already have some Session beans which has the required methods for Data
> Read & Manipulation of JPA Entities.
>
> I want to reuse these methods without rewriting the same logic. I followed
> the below approach
>
> http://olingo.incubator.apache.org/doc/tutorials/basicread.html
>
> Based on this tutorial I implemented the basic Read & in the readEntity
> method I invoked my ejb method to get the data, and build the response.
> This is working
>
> Is this a right approach?
>
> Also I want to invoke some getter methods from EJB, which expects more
> than 1 parameter as inputs? How can I achieve this?
>
> Aparnna
>

Reply via email to