|Adapting to existing database [message #514344]
||Sun, 14 February 2010 19:39
Originally posted by: ossipetz.gmail.com|
I would like to get some advice. I am currently moving from hibernate to
My current task is to connect to an existing database that contains a
lot of logic. E.g. reading data is done by querying database views. So
an O/R mapping (what I am used to doing with hibernate) seems quite
The crucial point is the saving of data: this must be done calling
stored procedure (on the oracle database 10g / 11g).
I've seen there is an annotation @NamedStoredProcedureQuery in
eclipselink to use stored procedures.
Is it possible (or advisable) to mix reading (using standard O/R mapping
methods) and writing to the database with stored procedure calls?
Or must all operations be done via procedures?
How do relations behave with procedures?
There are quite a lot of tables and writing to table may change from
procedure to straight-forward inserts in the future.
I would be happy to hear some experience or get some advice on this.
Thanks a lot!
Powered by FUDForum
. Page generated in 0.02246 seconds