[hibernate-dev] Mapping different objects with a single table

2013-04-25 Thread Teresa Batista Neto
Dear all, We have a java class that contains a list of names of type A, a list of names of type B, and a preferred name. We would like to map this list of names and the preferred name in a single table called names that contains id, name and type. I already had a look in hibernate documentation bu

[hibernate-dev] cascading deletion issue

2013-03-05 Thread Teresa Batista Neto
Dear all, I'm trying to use cascading deletion but it doesn't seem to work. " If you can guarantee that no other object (or row in any other table) holds a reference to these bids, you can make the deletion transitive. Hibernate (and JPA) offer a cascading option for this purpose. You can enable

Re: [hibernate-dev] Error: registry contains more than one (2) entity manager factories: PERSISTENCE_UNIT_NAME

2013-01-17 Thread Teresa Batista Neto
ny of you can help me with those issues. Thanks for your help. Best Regards, Teresa On Wed, Jan 9, 2013 at 11:45 AM, Teresa Batista Neto < teresa.batista.n...@gmail.com> wrote: > Hi Scott, > > Thanks a lot for your help. I'm going to try what you suggest. I'm also > go

[hibernate-dev] Hibernate timeout issue

2013-01-09 Thread Teresa Batista Neto
Dear all, I'm having problems adding hibernate timeout. Sessions are not closed after timeout. One of the requirements is not to use connection pool. Below you can find a brief summary of our specification requirements. - User logins in the web application using his own oracle database account;

Re: [hibernate-dev] Error: registry contains more than one (2) entity manager factories: PERSISTENCE_UNIT_NAME

2013-01-09 Thread Teresa Batista Neto
e? Perhaps you could try setting it to: > > "newt" + username > > Scott > > > On 01/08/2013 08:03 AM, Teresa Batista Neto wrote: > >> Hello, >> >> I just copy/past the exception call stack from when the "registry >> contains m

Re: [hibernate-dev] Error: registry contains more than one (2) entity manager factories: PERSISTENCE_UNIT_NAME

2013-01-08 Thread Teresa Batista Neto
rote: > I would like to see the exception call stack from when the "registry > contains more than one" error is thrown. You can copy it to a website like > pastie.org or pastebin.com and paste the link here. > > Scott > > On 12/20/2012 05:38 AM, Teresa Batista Neto

[hibernate-dev] Error: registry contains more than one (2) entity manager factories: PERSISTENCE_UNIT_NAME

2012-12-20 Thread Teresa Batista Neto
Dear all, After upgrading JPA from 3.6.1 to 4.1.8 I start getting the following error: "Error: registry contains more than one (2) entity manager factories: PERSISTENCE_UNIT_NAME" Below you can find a brief summary of our specification requirements. - User logins in the web application using th

[hibernate-dev] Problem closing oracle session with hibernate 4.1.8

2012-12-19 Thread Teresa Batista Neto
Dear all, I'm using hibernate and oracle 11g2 in one of my projects. I had to upgrade recently to a new version of hibernate, first from 3.6.1 to 3.6.10 and then to 4.1.8. However after migrating to 4.1.8 now my oracle sessions are never closed even after I close SessionFactory and I don't underst