record « Field « JPA Q&A





1. Hibernate: Delete where record field < getdate()    stackoverflow.com

I'm having trouble figuring out how to delete a set of records when a particular field is less than the date on the sql server without using tables or field names. Since ...

2. How to verify whether a record with certain field values exists in a DB with JPA?    stackoverflow.com

How to express the exists clause with JPA?

3. Hibernate get record by matching value with 2 concat fields    stackoverflow.com

I have a value which must be matched with 2 fields concatenation( value = field1+field2) and return result object matching that criteria. Can I somehow do it via Criteria or I ...

4. Insert new record - Date field with current time    forum.hibernate.org

Are there any good way to insert record using Session.save, so that the date field can be set to current timestamp relative to Database? Normal SQL for Sybase, insert into test_table (field1, field2, cdate) VALUES ('', '', GETDATE()) I am thinking of Session.createSQLQuery() instead of Session.save(), but it seems not good to write the whole insert-hsql for that. Any better idea? ...

5. A exception when I update a record contains a blob field    forum.hibernate.org

Newbie Joined: Mon Mar 01, 2004 1:09 pm Posts: 2 Need help with Hibernate? Read this first: http://when i update a record of ImageTable object,the data has been updated in database,the fields version has plus 1 automatic (i use version in hbm file), but when my application run ,it found the exceptions still as follows: Code: Hibernate: update ImagesTable set version=?, ...