1. How do I use JPA to make library objects database persistent? stackoverflow.comI've been using JPA on a small application I've been working on. I now have a need to create a data structure that basically extends or encapsulates a graph data structure ... |
2. Object Graph Persistence with saveOrUpdate forum.hibernate.orgIf I were to have the following object model: Code: public class Foo { String id; String description; List |
3. Too many SQL updates executed when saving simple graph forum.hibernate.orgEmmanuel, Thanks much!!! I've seen this article before but it seems it is not the case because the article is about bidirectional associations. In my case Child DOESN'T HAVE reference to parent. Could you plase explain why Hibernate executes queries 3 and 4. They don't do anything and are analogous to inserts 1 and 2. Thanks again for you courtesy!!! |
4. saveOrUpdate() in the whole object graph ? forum.hibernate.org |
5. Persisting Graphs forum.hibernate.orgThe graph is composed of mainly three objects: Parent, Node and Link. Parent contains a Set of Nodes and a Set of Links. A Link contains a reference to a source Node and another one to a target Node. The Node has a Set of incomming Links and another one of outgoing Links. Both Node and Link have a reference back ... |
6. Object graph persistence forum.hibernate.orgHi, Just a quick question: If I have say an object called AddressBook that contains Address objects, so we have AddressBook has many Addresses ie 1 to 0..* If i want to persist an AddressBook with Addresses do i need to 1) Persist the AddressBook first, then add new Addresses to it 2) Create a new AddresBook, add Addresses to it, ... |
7. merging a persistent object with new objects in graph forum.hibernate.orgWe have some code which adds new objects somewhere down in the object graph. We used to rely on cascade to save the object graph, saving any new objects that were added. Recently, we added caching, so we had to change our hibernate interaction to merge things, because we were dealing with detached objects. merge cascade does not work with a ... |
8. basics: saving an object graph forum.hibernate.orgUrls u = new Urls(); u.setUrl( url.toString() ); GzHtml h = new GzHtml(); h.setHtml( Utility.compress( html ) ); ... |
9. How can I duplicate a graph of objects to save several times forum.hibernate.orgHibernate version: Hibernate 3.1.3 Name and version of the database you are using: Firebird 1.5 Hi, How can I duplicate a graph of objects to save several times in database with different identifiers? I'm trying duplicate an object that has several child collections. I set the id to null in all the objects that I want to save. I'm using an ... |
10. How can I duplicate a graph of objects to save several times forum.hibernate.orgHibernate version: Hibernate 3.1.3 Name and version of the database you are using: Firebird 1.5 Hi, How can I duplicate a graph of objects to save several times in database with different identifiers? I'm trying duplicate an object that has several child collections. Before saving, I set the id to null in all the objects that I want to save. I'm ... |
11. Updating a large object graph forum.hibernate.orgHi, I have a large object graph in the database which a user may update by uploading a file. When the file is uploaded the data is parsed into objects. This object graph is then passed to hibernate and saved. The problem is that the user may select to update their objects in the database with the file, so the parsed ... |
12. merge an object graph forum.hibernate.org@Entity @Table(name = "BAR") @org.hibernate.annotations.Entity(dynamicUpdate=true, dynamicInsert=true,selectBeforeUpdate=false) public class Bar implements java.io.Serializable { @Id private String id; @ManyToOne(cascade={CascadeType.PERSIST}, fetch=FetchType.LAZY, optional=true) @JoinColumn(nullable=false) private Foo foo; @Temporal(TemporalType.TIME) private Date timeAttribut; @Version private Integer version; |
13. Issue while Saving a cloned object graph forum.hibernate.orgHi, I fetch an object graph through a query and do a deep clone and after resetting its id attribute (and that of its children) and after changing some attributes, I call session.save on the new object. However, this leads to an update statement which sets the foreign key of the previous object to null. My guess is its something to ... |