Tagged Questions
2
votes
1answer
126 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
131 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 ...
1
vote
5answers
1k views
Externalising SQL Queries in Java
What are the advantages and disadvantages of externalising SQL queries in Java (or similar general-purpose object-oriented programming language. Externalizing means storing all SQL in a separate ...
3
votes
1answer
729 views
is it possible to auto-generate annotated POJO from a table
I wonder is it possible or is there a tool to generate annotated POJOs from a table.To make it clear,for example,Person table has fields like ,id,name,surname etc and i wanna to generate a POJO named ...
16
votes
5answers
658 views
Do ORMs enable the creation of rich domain models?
After using Hibernate on most of my projects for about 8 years, I've landed on a company that discourages its use and wants applications to only interact with the DB through stored procedures.
After ...
6
votes
4answers
2k views
What are some best practices for populating and using a test database?
So, I'm developing some database-driven RESTful Java web services, using Hibernate and MySQL. For testing purposes, I'm using the H2 in-memory database. H2 is nice and fast, so this has worked out ...
4
votes
2answers
468 views
Should I use a framework for my new REST-based Java webapp? If so, which one?
I'm wanting to build a relatively simple app. Basically, a bunch of RESTful web services that access a database. Basic CRUD operations, a fair amount of search, and some amount of reaching out to ...
11
votes
4answers
874 views
What would you think about a new Java persistence tool, that's not really an ORM? [closed]
Persistence in Java
Over the past years, I have gathered experience in the field of persistence abstraction in Java, using concepts such as EJB 2.0, Hibernate, JPA and home-grown ones. They seemed to ...
-1
votes
5answers
1k views
Which simple Java JPA ORM tool to use ?
What Java ORM library implementing JPA that match following criteria would you recommend and why ?
free & open source
alive (at least bug fixes and a mailing list)
with good documentation
...
3
votes
1answer
173 views
CMP Entity Beans as a “naive” ORM solution
I was browsing through this talk about "Historically Bad Ideas" over the history of Computer Science, and found an interesting presentation about the rise & fall of the Java Enterprise ...