read « Insert « JPA Q&A





1. Can Hibernate automatically uppercase a column on read/insert via configuration?    stackoverflow.com

We have some columns with data that must always be in uppercase to ensure uniqueness. I was wondering if hibernate can force all such columns to uppercase via some configuration ...

2. How could I read a properties file and insert data into XML file?    stackoverflow.com

I have a properties file with data to connect with database. Also, I have a hibernate config file. I would like to config the hibernate file with properties from properties file. ...

3. reading from view and insert/update to table?possible?    forum.hibernate.org

Thanks for replying Michael. I can't .. the view is the union of two different tables. One table just consist of ids and foreingn keys to other tables. The second table is composed of names doesn't have any foreign keys. So the view resolves the ids (foreign keys) to names and unions with the second table. So if I make view ...

4. SQL Server 2005 can read from db but not insert into db    forum.hibernate.org

Author Message y0dA Post subject: SQL Server 2005 can read from db but not insert into db Posted: Fri May 25, 2007 4:43 am Newbie Joined: Fri May 25, 2007 4:03 am Posts: 15 Hey! Driver (tried both): jtds-1.2, sqljdbc Hibernate vers: 3.2.4 I get following exception if I try to insert into db: Exception: SCHWERWIEGEND: Parameter #9 has ...

5. How to make entities read-only after database insertion    forum.hibernate.org

I don't think you can label an Entity as insert only. However you can annotate all your columns as updatable=false, e.g. @Column( name = "...", updatable = false ) public ... get...(...) { ... } This should give your nearly the effect you wanted. Note that the above refers to JPA annotations not Hibernate annotations.

6. Insert fails in Sun AS 9.1 / read, update and delete works    forum.hibernate.org

Author Message tzman Post subject: Insert fails in Sun AS 9.1 / read, update and delete works Posted: Fri Jan 04, 2008 11:38 am Beginner Joined: Fri Jan 16, 2004 11:05 am Posts: 33 Sun Java System Application Server 9.1 (build b58g-fcs) JDK 1.5.0_11 Hibernate 3.2.4.sp1 Seam 2.0.0.GA Oracle 10.1.0.5.0 / oci client driver We have an application that ...