Tim Holloway wrote:OK. You've confused me. Why should line 11 ever be executed before line 4?
Regardless of what order things do internally, their execution order as statements is not allowed to be altered.
Furthermore, there are limits even within statements. Otherwise the "short circuit" operators couldn't work reliably.
Tim Holloway wrote:When an object is being constructed, it's still in the hands of the JVM's object factory and so the regular application threads can't access it.
Gerard Ramon Monte wrote:A tiny detail is that i don't really want to store the people names, so could i use the table Hunter this way?
ID - Role
1 - EK
2 - ED
3 - RP
4 - MS
And then, in participation asign 1 to 4 depending of the vocation?
So storing all the data this way, will allow me to keep showing the information in my table i shown you before? I supose i will have to do some SQL queries to get the information i want.
**The ¿? fields are things I don't know if I would have to add, or I can just calculate it and then show it in the application table using SQL queries.
Then the participation table, will have (in the case we are 3 people in party), 3 rows refering to that hunt
HuntID HunterID Waste Transfer 1 1(EK) 100 150 1 2(ED) 300 350 1 3(RP) 50 100
Then, to show this information in the application table, I can do SQL queries to get almost all the data, exept the things in ¿? wich I could just calculate at the moment.