Detached 1 « Map « JPA Q&A





1. Hibernate Detached Criteria    stackoverflow.com

I have a DetachedCriteria which I am using to search a table based on a name field. I want to make the search case-insensitive, and am wondering if there is a ...

2. Detached Objects in Jdo/Hibernate - What are they for anyway?    stackoverflow.com

Can some explain to me what is the advantage of using detached objects within the context of a web application? AFAIK they are only useful if the objects somehow outlive the ...

3. Hibernate - How to cascade delete on detached objects    stackoverflow.com

I have a hibernate object that gets detached and transferred to a thick java swing client using EJBs. The object is then modified in some way and returned to the server ...

4. (Detached)Criteria equivalent for HQL's 'index' function    stackoverflow.com

I have an IDictionary on an object which I'm loading with the following mapping:

public class InternalFund : IInternalFund
{
    public virtual IDictionary<DateTime, IValuation> Valuations { get; set; }
}

<class name="InternalFund">
 ...

5. Hibernate detached queries as a part of the criteria query    stackoverflow.com

java experts can you please help me write detached queries as a part of the criteria query for the following SQL statement.

select A.*
FROM AETABLE A
where not exists
(
    select ...

6. Best way to update some fields of a detached object on Hibernate?    stackoverflow.com


I was wondering what's the best way to update some fields of a dettached object using HB on Java. Specially when the object has child objects attributes. For Example (annotations removed ...

7. "detached entity passed to persist error" with JPA/EJB code    stackoverflow.com

I am trying to run this basic JPA/EJB code:

public static void main(String[] args){
         UserBean user = new UserBean();
      ...

8. What is detached persistance and transient object in hibernate?    stackoverflow.com

What is detached persistance and transient object in hibernate ? please clearify me with example.. Thankx in advance..

9. How to know if a detached JPA entity has already been persisted or not?    stackoverflow.com

I have a JPA entity instance in the web UI layer of my application. I'd like to know at anytime if this entity has been already persisted in database or if ...





10. Can Hibernate delete orphaned collections when updating a detached object?    stackoverflow.com

I know that deleting orphaned child objects is a common question on SO and a common problem for people new to Hibernate, and that the fairly standard answer is to ensure ...

11. Detached object in hibernate    stackoverflow.com

What is the benefit of detached object? What value do they provide? Thanks.

12. How to use AND OR operator in hibernate Detached criteria query    stackoverflow.com

I have a requirement to use AND/OR operator to hibernate detached criteria queries. I want to emulate SQL eqivalent to:

Select * from myTable where city in ( X, Y ) OR city ...

13. hibernate: Problem running queries / detached criterias on embedded object    stackoverflow.com

I'm encountering a problem running a query or detached criteria on an embedded object. I've tried both approached from this related question, neither seem to work. The error I'm getting ...

14. JPA cascade persist and references to detached entities throws PersistentObjectException. Why?    stackoverflow.com

I have an entity Foo that references an entity Bar:

@Entity
public class Foo {

    @OneToOne(cascade = {PERSIST, MERGE, REFRESH}, fetch = EAGER)
    public Bar getBar() {
 ...

15. Conver HQL to Detached Query    stackoverflow.com

select a.1, a.2, a.3 (select count() from B p where p.stat = 'PA' and p.a.id = a.Id) as pcount, (select count() from B q where q.stat = 'PR' and q.a.id ...

16. How to know if an EclipseLink entity is detached?    stackoverflow.com

Do you know any method to know the state of a JPA entity?. I'm facing some bugs and I need to know if an entity is detached or managed. I'm using EclipseLink ...





17. merging a detached or new entity with an existing entity in hibernate/jpa best practice question    stackoverflow.com

When the business layer creates a new entity, which logically represents an instance of an existing entity that should be updated (say they share the same business key), is this method ...

18. detached collection update problems    stackoverflow.com

i'm trying to do a full CRUD using a collection of detached objects (ie they were created without using hibernate and are not associated with the session). the ids of the items ...

19. Hibernate : merge an objet detached from the session    stackoverflow.com

I work on a client-server application that works like that : 1- the client calls the server to get a object from the DB 2- the server opens a hibernate session and get() ...

20. How to set the id on detached Hibernate proxy without LazyInitializationException?    stackoverflow.com

I'm using the object, which has over 15 related entities (parents). In my UI side I need only the ids of these entities, so I don't need Hibernate's fetch functionality and ...

21. Hibernate Detached Query    stackoverflow.com

How to convert this HQL into Detached Query, this HQL is taking a performance hit which I am assuming will be solved with detached Query...

(select count(status) from RD rdp where rdp.status ...

22. Delete row and reference using detached objects with Hibernate    stackoverflow.com

I've got an object A with a @onetoone to object B, so object A contains a reference to the id of object B and I want to delete object B in ...

23. org.hibernate.PersistentObjectException: detached entity passed to persist    stackoverflow.com

I had successfully written my first master child example with hibernate. After few days I took it again and upgraded some libraries. No sure what did I do but I could ...

24. How to retrieve objects using criteria, detached criteria and subquery    stackoverflow.com

For four days now I´ve been trying to perform a query in my database. Heres the problem:

  1. I have a Group of Users
  2. Users can have birth date (it might be null)
  3. I want to ...

25. Hibernate persistence by reachability & detached objects    stackoverflow.com

I'm curious to know how Hibernate would handle the following situation. Let's say we have a User entity, which has a country property, set to cascade the persistence:

public class User {
  ...

26. Java hibernate Detached criteria, count / having, query    stackoverflow.com

can someone help me out with a query ? Here´s the deal: I have two tables 1- Group of users 2- Users One group has a lot of users, but the thing is, the table groups ...

27. Advantages and Disadvantages of Detached object in hibernate?    stackoverflow.com

i was looking at advantages and disadvantages of Detached object in hibernate and found the link http://www.careerride.com/Hibernate-advantages-disadvantages-of-detached-objects.aspx. Advantages:- Detached objects passing can be done across layers upto the presentation layer ...

28. PersistentObjectException: detached entity passed to persist    stackoverflow.com

In my app I'm connected to a websocket. The socket is sending JSON data. As it is becoming available I process it in a different Job. In each job, I convert the ...

29. diff between criteria and detached criteria in hibernate?    stackoverflow.com

please tell me the difference between criteria and detached critria. and also when should we go for criteria and when should we go for detached criteria? please suggest me! Thanks!

30. object passing as paramter in update method can be in either in persistent state or detached state?    stackoverflow.com

As per hibernate doc(at http://docs.jboss.org/hibernate/core/3.5/javadoc/org/hibernate/Session.html#update(java.lang.Object)) for update method void update(Object object) throws HibernateException here object as parameter is said to be in detached state.But i tried some examples ...

31. Issue with Hibernate cascade types and merging a detached e...    seamframework.org

I'm doing the refresh() then merge() as activeClient is a detached entity that I want associated with the current conversation. If I remove refresh(), the StaleObjectStateException happens immediately on the merge() on the second edit click if I recall correctly. As stated before, I'm changing nothing in the activeClient and no one else is on the system to make simultaneous changes. ...

32. Storing and using detached objects in Hibernate    coderanch.com

I have a situation that is more easily explained with the following example: Say I create several Person objects and persist them using Hibernate and their SSN as the primary key. The Person ojbects are also cached in the actual application for future use. At this point the Person objects are now detached. Some time later, a Team object is created ...

33. How to Detached Hibernate object ??    coderanch.com

I am using Spring + Hibernate. In my application (running under Spring txn) an object is obtained using Spring Hibernate Template. This object (uses a collection) is modified and used later with in the same function. My problem is I donot want to save the modifed object and in order to do that I have to use session.evict which makes my ...

34. Difference between detached entity and new entity JPA    coderanch.com

Hi to all, this is my first post here (and hope not the last) and i have a question. I'm a newbie in ORMs and i'm working on a JPA project using Hibernate implementation so i decide to look for some documentation. JAVA official site documentation about JPA is very understandable but there's something that i don't understand. I've googled about ...

35. Detached Entity Exception in JPA (Detached entity passed to persist)    coderanch.com

We're here to help, and we want to help. That's what the boards all about. If you can really help us focus on what the problem is, we'll all pitch in! That's what we love to do around here. Step through your code and let us know which line is causing all the problems. Maybe that'll help us all focus. Kindest ...

37. [Hibernate] managing multiple detached objects that represent the same database row    coderanch.com

Hello Suppose I have class Parent and a class Child public class Parent { ArrayList children; } class Child { Parent p; } First I retrieve a Parent from the database with all its children. I close my session, so now I have 1 Parent with all its children as detached objects. I now start a second session and only retrieve ...

39. org.hibernate.PersistentObjectException: detached entity passed to persist:    coderanch.com

Sorry to edit post completely.. I got this exception when i submit a page second time in the same instance. try the folowing if you get the same... in your session bean Check whether the entity instance is null if (entity== null) { em.persist(entity);// then use persist() } else{ entity= new Entity(); em.merge(entity);//other wise use merge() }

40. JPA: Detached Entities    java.net

Hi, Just looking through the spec and reading various books. Detached Entities seem to just end up causing problems when Use Cases start getting more complicated etc. Some books / people suggest always using attached entities by using an Extended Persistence Context. This seems a reasonable approach. I was just wondering what advantages to detached entities actually give the user?

41. NonUniqueObjectException on update (no detached objects)    forum.hibernate.org

Out of nowhere, my app is getting intermittent NonUniqueObjectExceptions on the update of an existing object. I've looked around and the reasons that are usually given for this issue have to do with either detached objects or bad identity generation. I'm not using any detached objects and my identity generation is using an oracle sequence generator. I checked the generator, just ...

42. PersistentObjectException: detached entity passed to persist    forum.hibernate.org

Hi all , I am having this exception thrown in my face whenever I try to persist my object as such public String saveUser() { if (user.getPassword().equals(verify) ) { List existing = em.createQuery(query) .setParameter("username", user.getUserName()) .getResultList(); if (existing.size()==0) { System.out.println(":: ABOUT TO SAVE ::::"); user.setCreatedBy(credentials.getUsername()); user.setCreatedDate(new java.util.Date()); //em.merge(user); em.persist(user); return "users"; } else { facesContext.addMessage(null, new FacesMessage("username already exists")); return null; ...

43. Foreign constraints without associations (detached objects)    forum.hibernate.org

I had some trouble about detached objects and getting them attached again to a new session. I merged them, but the associations (objects in a set) were not updated automatically. As a result a query delivered new objects with the data instead of giving me the existing objects. Therefore I decided to do the loading by myself and instead of using ...

46. DETACHED ENTITY EXCEPTION IN JPA    forum.hibernate.org

Hi All, Pls I have being bugged down by the detached entity exception I have tried lots of things all to no avail below is an extract from my entity class . package com.taysay.drivetru.entity; import static org.jboss.seam.ScopeType.SESSION; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.TableGenerator; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; @Entity @Name("demo") @Scope(SESSION) @Table(name="DEMO") ...

47. Required help on Criteria, Detached Criteria.    forum.hibernate.org

48. Session-per-request with Detached objects for Long Conversat    forum.hibernate.org

I think I understand that if we use the Session-per-Request with Detached objects pattern for a long conversation for a single screen, where the user views and then changes some data then the following happens. We have 2 Sessions/Transactions, the first reads the data required for viewing, and opensessioninviewfilter is used to prevent possible LazyInitializationException. After the think time and the ...

49. Selective reassociation of detached instances    forum.hibernate.org

50. Delete detached objects problem    forum.hibernate.org

Hello, I am using hibernate with JPA and I am working with detached Objects. What I want is to load the data from the DB, modify it and then update the DB. Most is working fine so far, but there is still one Problem left: Delete Objects! I am using merge() to update the DB at least. I can change the ...

51. Detached Criteria Problem    forum.hibernate.org

I am having an issue trying to create an Or condition on my Detached Query. Here is what I am trying to do, but so far keep coming up empty handed. I am trying to use one phone number collected from the UI to be used as an or condition for both the customer and the contact? Any idea how to ...

52. all-delete-orphan <> Detached    forum.hibernate.org

If you set a collection to be cascade="all-delete-orphan", can you detach the elements of that collection in some way ? I'm asking this because i have a collection of elements in my database, and i would like to let the user of my application modify those elements in that list (delete, update, insert) in preview mode, without being updated directly in ...

53. transient or detached?    forum.hibernate.org

54. lazy init exception after reattachment of detached object    forum.hibernate.org

Ran into the following puzzling issue, suppose we have a relationship A <-- B <-- C where B is the children of A, C is the children of B. Let's say for now everything is lazily initialized (lazy="true") Suppose the an object of class C is retrieved in one session, becomes detached, then reattached in another session as such: Code: C ...

55. How to know if collection from detached object is not there    forum.hibernate.org

Hi, I would like to know what would be the most correct way to know if a collection from a detached entity has been loaded before I try to iterate it. What I am doing know is to catch the LazyInitializationException. Is there a way to know if such collection is there or not before I get the exception? Thanks!

56. Getting IDs of existing detached instances, creating others    forum.hibernate.org

I always feel guilty for posting in these kinds of forums because I know my question has been answered before, I just don't know what to search to find it. I have URLs stored in a table (essentially just an ID and the text of the URL link) and they need to be globally unique. For performance, I have a data ...

57. managing detached beans retrieved in multiple sessions.    forum.hibernate.org

Hello Suppose I have class Parent and a class Child Code: public class Parent { ArrayList children; } class Child { Parent p; } First I retrieve a Parent from the database with all its children. I close my session, so now I have 1 Parent with all its children as detached objects. I now ...

58. Detached Object and Using Merge    forum.hibernate.org

I am trying to use merge function, as explained in the following link. http://www.hibernate-training-guide.com/merge.html I wrote the following code. Code: Session session = factory.openSession(); Transaction t = session.beginTransaction(); Event event = null; try { ...

59. Removing a detached instance in JPA    forum.hibernate.org

No way to delete an instance when executing on a JEE server, it works fine in a junit test. Env : glassfish 3.0.1 hibernate 3.5.5 spring 3.0.4 Here is the exception Code: ava.lang.IllegalArgumentException: Removing a detached instance fr.tm.ima.metier.afo.exima.bo.ProfilCollaborateurBO# at org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:65) at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:108) at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:74) at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:948) ...

60. Detached criteria subquery    forum.hibernate.org

61. Attaching a detached instance using business keys    forum.hibernate.org

Hi I have an Entity that has a generated Id - a surrogate key that has no business meaning. Entity also has a business key (bk). This Entity is persisted initially in a Hibernate managed repository. In a different system, an equivalent Entity (having the same bk) is updated. This updated Entity needs to merged back to the Hibernate repository. Is ...

62. Saving detached objects back to database    forum.hibernate.org

Once a session is closed. The application may have detached object provided its not evicted in session. Now in the mean time, some modifications happen to the corresponding persistent object and is saved back to the database. Now we open up new session and attach the detached object to session using session.merge(obj). Now as per my understanding, this time we we ...

63. Saving detached objects back to database    forum.hibernate.org

Once a session is closed. The application may have detached object provided its not evicted in session. Now in the mean time, some modifications happen to the corresponding persistent object and is saved back to the database. Now we open up new session and attach the detached object to session using session.merge(obj). Now as per my understanding, this time we we ...

64. Persisting of detached objects    forum.hibernate.org

I have a company/employee relation in my database defined as: @Entity public class Employee { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private long id; @ManyToOne @JoinColumn(name="companyid") Company company; .... } @Entity public class Company { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private long id; ... } Now I an adding a newly created employee to a detached company. The code I use is something like: Company company = em1.find(Company.class, ...

65. Detached Entity on Cascade of Persist operation    forum.hibernate.org

I am using Hibernate 3, and having a particular issue when persisting a new Entity which has an association with an existing detached entity. Easiest way to explain this is via code samples. I have two entities, FooEntity and BarEntity, of which a BarEntity can be associated with many FooEntity: Code: @Entity public class FooEntity implements Foo{ @Id ...

67. detached collection update problems    forum.hibernate.org

hi, i'm trying to do a full CRUD using a collection of detached objects. the ids of the items are user defined (not generated). the collection contains entries that already exist in the database and entries that don't exist in the database. existing entries should be updated, new entries should be inserted. any entries that exist in the database but not ...

68. "detached entity passed to persist" disappears on debug    forum.hibernate.org

I have two persisted objects related by a @OneToMany relation. When I update the child objects and attempt to persist the changes, I get a "org.hibernate.PersistentObjectException: detached entity passed to persist" error. When I use Debug and step through the code, not only do all the objects look correct, but I don't get the error. Anyone run into this before?

69. Setting id on detached proxy causes the exception    forum.hibernate.org

Ok, I see, that id setters for proxy require initialization: BasicLazyInitializer: Code: else if ( method.equals(setIdentifierMethod) ) { initialize(); setIdentifier( (Serializable) args[0] ); ...

70. detached entity passed to persist error    forum.hibernate.org

71. Issue persisting "detached" entities    forum.hibernate.org

72. Updating a Detached Entity (Performance Optimization)    forum.hibernate.org

Normally when you want to update and detached entity you do something like: em.merge(entity) That's ok, but it make an extra select statement before the update. I know that the purpose of this select is to reattach the entity, but can I force a straight update without the select? I want to minimize the traffic usage in my network. Thanks in ...

74. How to detect detached object    forum.hibernate.org

75. detached entity passed to persist    forum.hibernate.org

package com.cnb.autodb; package com.cnb.autodb; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; /** * @author erpula * */ @Entity @Table(name = "EMPLOYEE") public class Employee implements Serializable{ /** * */ private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "id") private int id; @Column(name = "emp_name") private String emp_name; @Column(name = ...

76. detached entity passed to persist    forum.hibernate.org

Author Message gokceng Post subject: detached entity passed to persist Posted: Mon Sep 05, 2011 10:19 pm Newbie Joined: Sat Aug 20, 2011 10:00 pm Posts: 4 I have 3 entities user, patient and doctor. Every doctor or patient is a user. I don't use inheritance strategy because I couldn't get an answer from my question here: https://forum.hibernate.org/viewtopic.php?f=1&t=1012327 Now ...

77. Sync Detached Object    forum.hibernate.org

hi, I been using hibernate for some time now, but I'm fairly new to it's tunning. I'm in the following situation: 1. I've a daemon that recieves UDP datagrams with information from multiple Devices (that is parsed into objects and analized) 2. I've a Web interface for configuring this objects (such as the parser that is used for that particular object). ...

78. Entities being getting detached.    forum.hibernate.org

I'm trying to figure out what is going on but, from what I can tell it looks like the Session 'at random' is detaching entities that were previously created on that same session..i.e. 9/10 times the code below works just fine.. Essentially the code is doing the following: (entity is created/commit in transaction 1, then later updates (on the same session) ...

79. On detached object support in Hibernate    forum.hibernate.org

Beginner Joined: Tue Aug 26, 2003 11:33 pm Posts: 38 I've read HibernateJAOO.ppt and search here for detached object support in Hibernate, but still unclear about its use. The following code will throw Lazy Exception when run: Code: public class TestCode { public static void main(String[] args) { Session ...

80. Using detached objects    forum.hibernate.org

Hello, I am looking for some documentation about the use of detached objects with Hibernate. The principle is clear to me, I even wrote some XDoclet extensions to generate transfer objects before I found that Hibernate already supports this. However, I am not clear about some of the details and was hoping that someone can tell me before I have to ...

81. Problems with detached objects    forum.hibernate.org

I am using Hibernate and POJOs within JBoss and detached objects on the client. One part of my object model has particular problems with that. It consists basically of 3 classes: a flow has a collection of vertices, and the vertices are connected by edges, i.e. each edge has a source and a sink vertex, while each vertex has a collection ...

82. many-to-many not working properly with detached objects    forum.hibernate.org

Author Message dia100 Post subject: many-to-many not working properly with detached objects Posted: Wed Mar 17, 2004 4:20 pm Pro Joined: Mon Sep 08, 2003 4:30 pm Posts: 203 Mappings: Code: ...

83. What makes an object "detached"    forum.hibernate.org

I've searched the forums concerning layered architectures. I am currently using EJB/entity beans and DTOs to transfer data to the web tier. I would like to use something similiar using session EJB and hiberate. It appears I can make use of "detached objects" in hiberate but I havnt found any clear answer on when a hibernate object becomes detached so that ...

84. Detached Object Support    forum.hibernate.org

I'm considering using Hibernate's Detached Object Support in a "typical" web app - the only remote client is a browser, so no ejb session bean. The user views (GUI screens) are fairly simple so the domain objects themselves should work for RO views and data entry. We use Struts (unfortunately?) so I believe action forms are mandatory for data entry. Can't ...

85. Dirty checking for detached objects, and cascading    forum.hibernate.org

Hello, I'm using an architecture pretty much resembling the application transaction with session-per-request-with-detached-objects as explained at http://www.hibernate.org/168.html. Now, the problem is that when I give the client an object with associated objects mapped with cascade="all" or cascade="save-update", calling saveOrUpdate() on the object also causes all the associated objects to be written to the database even though they have not changed. So ...

86. updating detached object    forum.hibernate.org

I tried to save an object loaded in previous session and hibernate throws nonUniqueObject exception i have cleared the session (session.clear()) before updating // in the first session Cat cat = (Cat) firstSession.load(Cat.class, catId); // in a higher tier of the application cat.setMate(potentialMate); // later, in a new session secondSession.clear(); secondSession.update(cat); // update cat but if I load a new instance ...

88. Why collection isn't initialized after save detached parent    forum.hibernate.org

I was thinking before posting some code to get an answer if the comportament that I've got from Hibernate is an usual one or it is an error. Here is my configuration: I use Hibernate 2.1.2, Oracle 8.1.7 the parent object is of type Societe : SOCIETE_SEQ

89. Detached Object States    forum.hibernate.org

Apologies if this is something that has been covered, but I cannot find the answer to this question anywhere... I was hoping to find some state diagrams and/or a detailed explanation of what exactly happens when objects are detached and reattached via session.lock() and session.update(). The documentation describes what happens, but not in any great detail. Is this documented somewhere? I ...

90. Saving detached objects    forum.hibernate.org

Hello all. As a complete beginner, I have a very simple stateful session bean I'm using to try Hibernate with. So far it loads some Person objects from a DB (I only have one table, one class so far), and returns them to a client app. The client updates some of the records and passes them back to the SFSB. The ...

91. please explain detached objects, cloning issues    forum.hibernate.org

we are finding that we need implement the clone method on our objects that are persisted because hiberante keeps some kind of magic connection to the actual object reference. we want to be able to rid a given object instance of ANY reference to hiberante, so we can just blank out the id's and resave it, and it will save as ...

92. floundering with detached objects    forum.hibernate.org

Are there any docs/tutorials/tips for using Hibernate (2.1.4) to save detached objects in a stand-alone application? I'm just learning Hibernate and I'm using it in a project where we really just want to call some save() method when we change something. We want to have our classes depend on Hibernate classes as little as possible, and would like them to know ...

93. Passing a graph of detached objects back    forum.hibernate.org

In an environment where Hiberante is integrated with J2EE AS. Session beans SA and SB. Client calls SA, which then calls SB several times to do a complex business logic. SB will retrieve a relatively large graph of objects and return it to SA, which makes changes to that graph of objects. Then SA passes the modified object graph to SB ...

94. Using detached dirty objects in queries    forum.hibernate.org

In chapter 10.4.2 of the doc, one can read the following: Each interaction with the persistent store occurs in a new Session. However, the same persistent instances are reused for each interaction with the database. The application manipulates the state of detached instances originally loaded in another Session and then "reassociates" them using Session.update() or Session.saveOrUpdate(). This looks fine until we ...

95. Detached objects    forum.hibernate.org

No, I don't have any error. But I wonder what's the different, if it exists, between a detached object and one created in that way. What are the benefits of maintaining a detached object, for example in the HttpSession, and reattaching later to the session instead of creating a new one and associating a valid id in order to make a ...

96. Problem with subclasses and detached entities    forum.hibernate.org

Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message DWright Post subject: Problem with subclasses and detached entities Posted: Fri Sep 03, 2004 7:04 pm Regular Joined: Wed Jul 07, 2004 2:00 pm Posts: 64 select-before-update does not appear to work when using inheritence (table-per-heirarchy ...

97. detached objects scalability    forum.hibernate.org

98. Cascade updates using detached objects    forum.hibernate.org

Hi, During cascase updates (parent/child bi-directional relationship), hibernate tries to insert the new child elements (added to the child collection) before deleting child elements removed from the child collection. This leads to an issue in my application as described below. I am using a detached object that I send to the client. The user may delete a child element from the ...

99. Adding objects to collections belonging to a detached object    forum.hibernate.org

Hibernate version: 2.1.6 I have objects A and B, connected by a many-to-many relationship A_B. I'm using a Swing GUI to manipulate data, i.e. load an object of type A including the relationship to B, display in the GUI, and then allow the user to add and delete relationship objects A_B from the loaded object A. Because of the Swing GUI ...

100. Detached Object Collection problem    forum.hibernate.org

View unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] Detached Object Collection problem Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message javacoda Post subject: Detached Object Collection ...