The hibernate tag has no usage guidance.
0
votes
0answers
47 views
Modeling complex tree structre
After asking it in stackoverflow : polymorphism-and-tree-structre
I came to a conclusion that I am not being specific and my question is not about any specific technology so I will try to rewrite it.
...
1
vote
3answers
174 views
Examples of mid/large-scale web-apps built without an ORM?
I've been reading a lot of hate spewed on ORMs, and am genuinely interested in finding out if there is a better way of doing things.
Unfortunately, while there are tons of books, blog posts, and ...
-4
votes
0answers
34 views
Is it possible to use Hibernate with Apache Drill [on hold]
I am working on an application and I wanted to make sure that I can use Hibernate when working with Apache Drill. I've read that Drill is not transactional while Hibernate requires transactions and ...
0
votes
1answer
102 views
How do I integrate hibernate and REST web service in java?
I am going to develop which will be web application as well as mobile (android / iOS / windows) application. The database in this application will be managed by Hibernate. Also as it is cross platform ...
0
votes
0answers
43 views
How to use Hadoop HBase with Spring Boot without knowing the schema of the database ahead of time
I have created a basic application with spring boot and HSQL which connects an in-memory HSQL database with an angularjs front end using spring-boot and spring JPA with Hibernate. I am now trying to ...
0
votes
0answers
40 views
Are there special considerations to take for the database when using Hibernate's @Version?
We've encountered a bug which is solved by adding a @Version-ed field.
However, I'd like to know if I need to add something special in the database (Oracle 11g), like adding some index on the new ...
4
votes
2answers
140 views
Micro-service database management?
Most people say when building micro-services, that it's best to have separate databases for each of the microservices.
E.g:
User-microservice:
DB - User
userId
name
Etc...
Review-microservice:...
0
votes
0answers
36 views
Design a System to save a data that will be missed from another system
I'm building a middleware system where I'm saving the data from VERY slow API, The system behind this API works like this
It produce a data blocks, lets denote a datablock by A.
While A is used by ...
0
votes
0answers
43 views
How does Hibernate Cascade on OneToOne work under the hood
I have the following entities corresponding to tables into DB:
User, UserAttempt;
User has a FK to UserAttempt, and UserAttempt has no knowledge of User.
If I do the following inside a transactional ...
2
votes
1answer
59 views
How to optimize a bloated entity that causes a huge query
I have an application that exposes a series of Web services. One of my entities has a bunch of one-to-many and many-to-many relations to other entities. My transactionality level is at DAO, and I'd ...
3
votes
1answer
162 views
How to paginate local and remote data?
My team is currently facing a problem that we don't know how to tackle.
Some technical details: we use Java 8, Hibernate, Spring, MySQL, and AngularJS for the front-end.
We need to do pagination on ...
6
votes
5answers
674 views
How to design a complex REST API considering DB performance?
I've been following some tutorials on how to design REST APIs, but I still have some big questions marks. All these tutorials show resources with relatively simple hierarchies, and I would like to ...
1
vote
3answers
881 views
Best way to deal with Hibernate 1->Many relationship over REST/JSON service
Problem: A Hibernate bi-directional One-to-Many relationship does not map easily to JSON. If default (Jackson) mapping is used there is an infinite recursion issue as the parent contains the children ...
2
votes
1answer
241 views
How, in Three Tier Architecture is Database Access Achieved
So I am attempting to make an application based on the architecture proposed by this image;
[1]
However, I am getting very confused with how data access is achieved between the data access layer ...
4
votes
1answer
505 views
ORM: runtime proxies vs bytecode instrumentation
What are the benefits of using runtime proxies with an ORM provider like Hibernate or EclipseLink compared to bytecode instrumentation/enhancement?
I know that bytecode instrumentation helps to ...
0
votes
1answer
369 views
DTO and JPA Version
I have DB tables representing Employees and Departments. The server side(JavaEE) contains JPA entities representing the same.
The client is a standalone client and communicates with the server using ...
2
votes
2answers
218 views
What's the correct approach to DAO layer in presence of ORM framework
I'm using JPA/Hibernate but probably it doesn't limit question.
Currently I'm writing my data access code in my web controller classes. Thanks to JPA, in most cases this code is very simple, ...
1
vote
3answers
330 views
Limiting complexity in JPA programs Java/Hibernate
I've been working on a new application for some months now. It's my first big JPA program, and is still in the early stages. However, the complexity of my JPA object tree is becoming a growing problem....
5
votes
1answer
550 views
Is this database design good? What JPA Entities should I create for this design?
I am trying my hands on JPA. For this I am thinking of using the example of a student admission process as shown in the diagram below.
Is this design good ?
Any suggestions for improvement are ...
4
votes
4answers
2k views
Programmatically extending Hibernate table/entity definitions in Spring, how?
I would like to know if there is a way —maybe with AOP— to extend table/entity definitions so that I can add functionality across the board that requires persistence.
Let me explain what I want to do ...
3
votes
1answer
60 views
Dealing with Users and User-Owned Data in an API
I have a question about the way I am architecting an API.
Structure
My API structure so far is like so (there is about 10 classes total, but many are similar, so I've reduced to these classes, and ...
1
vote
0answers
310 views
Transaction Management in Hibernate with DAO Design Pattern
I have many Tables, For every Table,we have DAO Interface and DAOImplementation class.
Example DAO Interface
public interface CancelPolicyDAO {
public CancelPolicy insertCancelPolicy(CancelPolicy ...
0
votes
1answer
819 views
Logic based on modified fields of a Hibernate entity
I have a Hibernate entity object MyObject with several attributes and a service MyObjectService containing business logic dealing with MyObject. I also have a view model dealing with user input/output ...
0
votes
2answers
260 views
Entity design for a blackjack game - should I make Card an entity?
I am creating a simple blackjack game backed by database
In my Card is
public class Card{
private Face face;
private Suit suit;
//setters.. getters
}
where face and suit are enums
I have an ...
10
votes
1answer
4k views
Java application structure: Horizontal vs vertical split
Having a bit of a debate about the starting project structure (using Maven/Eclipse) for a big Java application.
Option 1:
entities (i.e. the whole database using Hibernate classes-first)
services (i....
0
votes
1answer
554 views
Am I doing it wrong with Hibernate DAO layer? i.e. Feature Bloat
For quick prototyping I have been actively using Hibernate. Recently I came back to an old project and I wondered why I had a lot of DAOs with what I suspect is commonly named feature bloat. E.g.
I ...
1
vote
2answers
1k views
Using Hibernate Criteria framework for complex queries vs. just making views in DB
I like using Hibernate for regular simple CRUD operations.
However, I am trying to understand why anyone would resort to its Criteria framework to assemble complex recordset criteria as opposed to ...
29
votes
5answers
58k views
Service layer vs DAO — Why both?
I have been working with SpringMVC, Hibernate, and some databases in a java web application example.
There are a few different ones that do this, but this Spring 3 and hibernate integration tutorial ...
2
votes
1answer
6k views
Java desktop application using MVC + Hibernate
I'm developing a Java desktop application. I'm planning to use MVC architecture described at Oracle site: Java SE Application Design With MVC.
I need to store data in database so I decide to use ...
5
votes
4answers
1k views
Performance related doubt in Java with Hibernate
Suppose in some ORM based project (say Hibernate) I am trying to fetch only few columns rather then the whole Object with may be more than 20 attributes. I am writing HQL like "select attr1, attr2 ...
1
vote
1answer
525 views
How to properly use Hibernate
I am new to Hibernate so my question could be seen as a very straight forward one, also I will try not to be too generic (as I am always told off because of that), although as with all architectural ...
2
votes
2answers
137 views
How to handle deleting record with associated records?
this is not a technical question but rather about the right logic on handling delete with foreign key constraint. First of all, Im very new to programming and a dummy about software engineering. Im ...
3
votes
1answer
111 views
Handling ground-breaking changes in a production system - Insert intermediate level Management object
As our client request, we are proceeding to change the base of our system. We already have the following structure:
A class has many students. (simple typical one - to - many)
Now we must change ...
0
votes
1answer
126 views
Keyword Collection, ManyToOne or OneToMany relationship?
I hope this is the right place for this type of problem.
An Object of my class Movie can have several keywords ( like 'fight club', 'brad', 'fincher'), and be part of different categories (like '...
1
vote
1answer
271 views
SQL W/ hibernate vs in-memory solution
I recently posted a question here: Methods to share memory or state across JVMs? and appreciate the answers. However, as I read the code and learned the system better I learned I was over ...
2
votes
1answer
283 views
Sorting rows off an autoincrementing primary key
Is it a bad practice to rely on an auto-incrementing primary key to sort rows in a table? A coworker and I were having an argument about this subject. We need to be able to find the last-inserted row ...
1
vote
1answer
289 views
ORM: Keep entities coherent in a cache or retrieve entities each time?
We have a tricky question in a project using Java & Hibernate, with a model containing bi-directional relationships.
As it's a small project with few users, few entities, and few rows involved in ...
5
votes
2answers
929 views
Hibernate set up for beginner
I am learning Hibernate (OR Mapping). I am using Maven for project management. However, I am currently reading a Hibernate book by O'Reilly, and they use ANT for their example. So my question is are ...
10
votes
5answers
27k views
Do I need to know servlets and JSP to learn spring or hibernate or any other java web frameworks? [closed]
I've been asking a lot of people where to start learning java web development, I already know core java (Threading,Generics,Collections, a little experience with (JDBC)) but I do not know JSPs and ...
1
vote
4answers
2k views
When using Hibernate can we forget about Database Design?
We started (just me and my friend) working on a website. As a part design phase we have finished the drawing a Site Map, decided on the content in each of the web page and the navigation.
As we want ...
21
votes
5answers
40k views
What are the advantages of myBatis over Hibernate? [closed]
I've done some research on my own and understand the basic concept. But some insights can only be gained through actual experience.
What are the advantages of myBatis that would make it worth ...
0
votes
3answers
3k views
Parsing excel data in Java before saving it to database [closed]
I'm working on some project where I have to make a database to store data which is currently kept in Excel files, so I have to do some changes before writing the data into the database.
I'm going to ...
6
votes
1answer
949 views
Why were annotations introduced in Spring and Hibernate?
I would like to know why were annotations introduced in Spring and Hibernate? For earlier versions of both the frameworks book authors were saying that if we keep configuration in xml files then it ...
0
votes
1answer
2k views
Best practice for creating views in spring and hibernate web application
Hi I am currently developing a web application in Spring and Hibernate where i have several different tables. The Delivery table for example is mapped many-to-one with the Customer table and the ...
4
votes
3answers
1k views
When Business Object fields should not exactly reflect database columns
Main advantage with Hibernate annotations is the fact that a simple POJO (also called a Business Object the most of time) can become persistent through Hibernate annotations (or actually JPA) .
In ...
6
votes
1answer
7k views
IntelliJ with Maven compilation
I have a project that needs Hibernate jars.
I added them as dependencies in the pom.xml and Maven compiles my project well.
However, in the IDE, all annotations and calls to Hibernate API are marked ...
10
votes
2answers
13k views
Is Spring + Hibernate prefered instead of EJB 3?
It is my perception that whenever new JEE projects start (where these technologies would be applicable), people prefer to use a combination of Spring + Hibernate instead of EJB 3.
It seems junior ...
0
votes
0answers
257 views
How much should I know about Hibernate before I add it to my CV/Resume? [duplicate]
Possible Duplicate:
At which point do you “know” a technology enough to list it on a resume
I have been holding off adding Hibernate to my CV (resume, for American readers),but we ...
1
vote
1answer
1k views
Storing documents in Database vs CMS in JSF, Seam, Hibernate application on cloud
I am about to start with an application using JSF 2, Seam 3, Hibernate and Hibernate search with the following characteristics:
Users will be uploading documents (pdf, doc).
There can be millions of ...
5
votes
3answers
11k views
How significant are Spring and Hibernate in software development? [closed]
I am a software professional with about 1.6 years of experience in Java. Due to personal reasons, I had to quit my job, and now after 5 to 6 months, I am about start my career again. I am planning to ...