1. Un-committed database transactions and auto-increment columns stackoverflow.comI encountered some curious behavior today and was wondering if it is expected or standard. We are using Hibernate against MySQL5. During the course of coding I forgot to ... |
2. Hibernate - link table with additional columns - saving in one transaction stackoverflow.comI am learning Hibernate and just read the chapter "7.2.3 Adding columns to join tables" of the "Java Persistance with Hibernate" book. My goal is to save Item, Category and CategorizedItem ... |
3. JPA optimistic lock - setting @Version to entity class cause query to include VERSION as column stackoverflow.comI'm using JPA Toplink Essential, Netbean6.8, GlassFish v3
In my Entity class I added |
4. Is it possible to column-level optimistic locking in JPA toplink? stackoverflow.comI studied about |
5. Link table with additional columns-saving in one transaction forum.hibernate.orgHi, I am learning Hibernate and just read the chapter "7.2.3 Adding columns to join tables" of the "Java Persistance with Hibernate" book. My goal is to save Item, Category and CategorizedItem in one transaction. There is a constructor there (page 305): Code: public CategorizedItem(String username, Category category, Item item) { // Set fields ... |
6. Version column when using Optimistic locking forum.hibernate.orgHi folks, I am faced with this problem: I have a database on which I can do [b]no changes[/b]. With Middlegen I generate hbm.xml files and java files. On one table I like to use optimistic locking by version. Is it possible to let Hibernate use an existing column as version column ? My example table without optimistic locking: (A.hbm.xml) [code] |
7. SQLException: Invalid column index when optimistic-lock=&quo forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: |
8. Bug? Table creation fails with MySQL and column named 'lock' forum.hibernate.orgHibernate Core version: 3.2.1 GA I had a tutorial-like setup which worked fine in a PostgreSQL environment, but when I changed the hibernate.cfg.xml to use MySQL instead, the automatic creation of one table failed. Copy'n'pasting the debug SQL query output into a mysql console session revealed that it was the column name "lock" it was unhappy with. Changing the name in ... |
9. HELP- Oracle, Char column and optimistic lock (dirty) forum.hibernate.orgPLEASE Can someone please help me? I'm desperate!!!!! NHibernate keeps returning 0 row count on an updated when I have done a previos update. There is a oracle char(60) column in my database called in_callers_adr The first update sql is as follows: Replace '_' with a space. UPDATE in_cidents SET in_callers_adr = :p0 WHERE in_ref = :p1 AND in_callers_adr=:p2 :p0 - ... |
10. Exception and deadlock using backticks in column names forum.hibernate.org... 11 more Caused by: org.hibernate.AnnotationException: Column name Customer_ID of foo.bar.entities.Customer not found in JoinColumns.referencedColumnName at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:319) at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:89) at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:499) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:304) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1225) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:159) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854) ... |