Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Calculations of field values using other tables
Calculations of field values using other tables [message #390286] Tue, 14 July 2009 04:51 Go to previous message
Philipp Kursawe is currently offline Philipp Kursawe
Messages: 135
Registered: July 2009
Senior Member
Hello,

is it possible to calculate a fields value using a SQL statement?
I have a progress and a status field that would have to be calculated by
values from another table.

OrderEntity {
float progress;
int shortageLines;
}

The shortageLines field would be calculated by the number of line items
from the line_items table that have been picked with a shortage. The
progress field is the overal % of already picked line items versus the
total number of line items to pick.

Any idea if something like that is possible to "inject" into the object
using JPA?

Thanks,
Phil
 
Read Message
Read Message
Read Message
Previous Topic:Unstable database connection causes EL to deadlock
Next Topic:Create additional views on session start
Goto Forum:
  


Current Time: Fri May 24 10:03:34 EDT 2013

Powered by FUDForum. Page generated in 0.01611 seconds