Hibernate and stored procedures
Posted
by cc96ai
on Stack Overflow
See other posts from Stack Overflow
or by cc96ai
Published on 2010-03-08T14:40:30Z
Indexed on
2010/03/08
15:21 UTC
Read the original article
Hit count: 345
As my understanding on setting hibernate, I need to create
- table meta data file (
person.hbm.xml
), include all the fields mapping - java object (
person.java
)
If we use stored procedures for all transaction, do we still need the above configuration?
It seems hibernate and stored procedures will overlap,
We set up the stored procedure because we don't want the to developer know all the field in db. If tables change, then we need update above files.
Does it mean if we purely use stored procedure, we should just go for JDBC?
If hibernate, we should stay in HQL?
© Stack Overflow or respective owner