Tagged Questions
-1
votes
1answer
94 views
How to do transaction management using Spring without Annotation?
I'm using Hibernate4.2 and Spring3.2 and I m doing transaction management using Spring without annotation (i.e. without @Transactional). How can I use Spring-transaction management without annotation ...
1
vote
1answer
95 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
111 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
124 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 ...
4
votes
2answers
307 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 ...
1
vote
4answers
2k views
Do I need to know servlets and JSP to learn spring or hibernate or any other java web frameworks?
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 ...
0
votes
3answers
1k views
Parsing excel data in java, before saving it to database
I'm working on some project where I have to make a database for 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 read ...
0
votes
1answer
545 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 ...
3
votes
3answers
343 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 ...
3
votes
1answer
764 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 ...
3
votes
2answers
1k 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 ...
2
votes
1answer
240 views
How to achieve thread synchronizing without effecting the efficiency in java [closed]
Say using following function:
public synchronized int getUnique(){
MyObject obj = getValueFromDb();
obj.modifyIt();
obj.commit();
}
When simultaneous call is made to this method several ...
1
vote
1answer
865 views
What is the best way to manage Hibernate sessions in a Struts-1 application?
I am now the owner of a Struts-1 application, and the Hibernate session management is all over the place. I have searched online documentation but have not found a clear explanation of the best way ...
2
votes
3answers
372 views
infrastructure software/technologies for developing web service
[Edit: Thanks S.Lott for the hints]
I'm developing a web service from scratch. The service could have potential of 10,000 requests a day. Actually, to be honest, requirements aren't that clear at this ...
2
votes
1answer
420 views
Hibernate building HQL queries
I just read hibernate reference and they say that you should use constans for HQL queries. However that is not always possible, for example if you do search function and have 10 criterias (not jpa ...