write « Database « JPA Q&A





1. JPA Writing from Multiple Process into Single DB    stackoverflow.com

So, I've got a design question: I have several processes running that are updating my database. As an example, imagine a banking system, where I'm recording transfers from one account to ...

2. seperate read and write databases with hibernate    stackoverflow.com

With hibernate, I want to be able to support multiple databases, one for read and one for writes. Is this possible? Is the only way to create 2 separate session objects? ...

3. Separate read/write databases    forum.hibernate.org

Hi all, I've tried Googling and searching the forums for this, but can't find any satisfactory answers. How exactly does one specify that all write transactions go to one datasource, and all read transactions go to another in Hibernate? I'm writing a Java webapp that needs to be easily horizontally scaled in a cloud environment. We'll be using MySQL, with the ...

4. Values sometimes not written to DB,even after immediate flus    forum.hibernate.org

hey guys I know my issue must sound ridiculous, but I am facing that same issue for quite some time now. I basically did all I could to avoid it. By all I could, I mean more or less hacks. Like special "did hib really save the changes" checks. I ridiculously often flush the session. But sometimes a property value is ...

5. Problems writing to database (hibernate + cocoon)    forum.hibernate.org

Hi, I have, for the first time, installed hibernate and followed instructions I managed to get concerning hibernate and cocoon, and of course it doesn't work! When you run the pipeline: , string s is written to the page sucessfully but nothing is written to my postgresql database table test. ...

7. Write to 2 databases    forum.hibernate.org

Yes, you have to declare two SessionFactory object, one per db. Then just use Sessions from each SessionFactory to execute your queries on each db. If every queries have to be executed against both db, I'd write a class that executes each query against each db systematically. Pretty simple in fact. You'll meet maybe some pbs for example if transactions could ...

8. Write delay with HSQLDB    forum.hibernate.org

Hibernate version: 3.1.3 Name and version of the database you are using: HSQLDB 1.8.0 My problem is with HSQL DB, with memory or cached tables. Simply, if i modify a value and then i close immediately my application (or i wait 1 second as example), the modifies are not stored in the database. If i modify a value and then i ...

9. Redirecting write operations to another database.    forum.hibernate.org

Newbie Joined: Mon Nov 20, 2006 5:16 pm Posts: 7 Location: PARIS Hi guys, I have this project on hand that has multiple databases and is using Hibernate to access the contents of the DB. In order to reduce concurrent modification issues, I've changed the configuration of the DB to use Oracle Streams in a master/slave mode and made the application ...





10. writing a database file    forum.hibernate.org

I have a java program, using Hibernate in standalone mode. It reads custom data files, processes these, and makes results to be written out with Hibernate. The idea is to write to db files on the disk. My persistence.xml includes the line I run the program. It makes files /tmp/m5.{log, properties} The m5.properties file includes the comment ...

11. write own hsqldb dialect    forum.hibernate.org

Hi, have you solved your problem? I'm in the same situation: I try to use HSQLDB 2.0.0.RC7 with hibernate 3.2.6 (I need insertable views feature, which is supported by HSQLDB 2.0, but not by HSQLDB 1.8). But i got the "incompatible data types in combination" error - probably because of not compatible dialect, I guess... Any hint how to solve it? ...