Linked Questions

8 votes
2 answers
17k views

I have a general question about Hibernate that I'm batteling with. I have class A and class B, where B is dependent on A In my code when I call em.persist(objOfTypeA) I would expect the insert to go ...
WonkeyDonkey's user avatar
7 votes
1 answer
21k views

I'm using Oracle database and I have sequence and trigger for generating and storing ID before insert. CREATE SEQUENCE CASE_SEQ START WITH 1001 INCREMENT BY 1 NOMAXVALUE; CREATE OR REPLACE TRIGGER ...
sasynkamil's user avatar
1 vote
1 answer
4k views

I know there are several similar questions on the list, but I've been unsuccessful in twisting them into a solution for my particular problem. I am using XML mapping files for my hibernate3 ...
Thom DeCarlo's user avatar
6 votes
1 answer
2k views

I have the following situation: I´m trying to build an application which is multi-tenant with the same tenants in one database with the same tables. As by know Hibernate is not supporting this ...
Logarith's user avatar
  • 710
0 votes
1 answer
2k views

I've been scratching my head for a while and thought I'd get some help :) I'm working with a legacy database which I cannot change. I have the following domain: @Entity public class Institution { ...
C0deAttack's user avatar
  • 24.7k
2 votes
2 answers
741 views

Hello Stackoverflow, I had hard time with OneToMany mapping I have googled to find the solution from morning nothing helped. I am trying to do @OneToMany mapping relationship. following are the ...
swapnil irabatti's user avatar
0 votes
1 answer
1k views

I am trying to insert a row into a table called Mstrauthorizations. When doing so, I get an error saying Could not execute JDBC batch update. The row is not in the DB - so - I do not see how it could ...
Casey Harrils's user avatar
0 votes
1 answer
731 views

I am trying to build a structure as shown below: User: id | username | ------------------ 1 | Mary | 2 | George | 3 | Candy | Movie: id | name | ------------...
Jack's user avatar
  • 1
1 vote
1 answer
323 views

This is a followup question to Hibernate: Where do insertable = false, updatable = false belong in composite primary key constellations involving foreign keys?: Consider the following entity mapping: ...
Kawu's user avatar
  • 14.1k
1 vote
3 answers
311 views

I am confused about how to save entry in db with column's join. I have @Entity bellow @XmlRootElement @XmlAccessorType(value = XmlAccessType.FIELD) @Entity @Table(name = "psc_users") @...
Alex's user avatar
  • 4,543