design « Update « JPA Q&A





1. Java Large file to be saved in database - Object design    stackoverflow.com

I am trying to figure out object design to implement large file(~600 MB) respository in the Database using hibernate. Please suggest a correct approach/design?

class ModelClass{

String name;  //meta data
...

Option 1. 
  ...

2. Application db persistence design    forum.hibernate.org

Hi folks, I've implemented a multi-tabbed swing application. Currently I'm designing the persistence layer that will take care of any actions that occur in the swing app. Each tab represents a single object that needs persisting. I've had a look at the reference manual regarding transactions and concurrency. They highly advise not opening and shutting sessions and transactions for every little ...

3. Class design, why not have save/update as base class member?    forum.hibernate.org

From the simplicity of my question I have no doubt that this question has been answered before, but I have not been able to find the answer searching these forums, and a reason of "why not" is not given in the documentation. If you have a POJO "Cat", why is it that we have to have a CatDAO class to manage ...

4. Persistence independent object design    forum.hibernate.org

costi2times wrote: Suppose we have some classes in our application domain. But we don't want them to be "tied" to a particular persistence framework. These classes should just express the particulars of the domain concepts....no ID's, no mappings, no annotations; To implement persistence on this domain, how about deriving these classes, and applying hibernate (for example, or any other ORM) mapping ...

5. Design question for update method    forum.hibernate.org

Hi, i have a general design question. I have a Webapplication and a webservice both exposing the possibilty to update the data of a domain object. This domain object has a technical id used as primary key in the db and a natural id from the business domain (this one might change over time). In the webaplication updating the domain object ...