select event0_.ID as ID1_, event0_.NAME as NAME0_1_, event0_.START_DATE as START3_0_1_, event0_.DURATION as DURATION0_1_, speakers1_.EVENT_ID as EVENT1_3_, speakers1_.EVENT_INDEX as EVENT3_3_, speakers1_.EVENT_ID as EVENT1_0_, speakers1_.NAME as NAME1_0_ from TB_EVENTS event0_, TB_SPEAKERS_List speakers1_ where event0_.ID=speakers1_.EVENT_ID(+) and event0_.ID=?
Which is giving correct results when I executed it manually. Please help me figure out this problem.
Can you explain your problem in a little more detail? At this point, I am not understanding what the problem is.
Also, there is a CODE button below the Add Reply button that will add CODE tags where you can paste your mappings and code, and it will retain all the indentation, so it is readable. Right now it has no indentation and is very difficult to read.
I've written a piece of code which is using Map. Well, when I try to save objects, this code works fine but now when I try to retrieve records, it returns me Event object. When I retrieve Speaker and cast it to Map, it returns keys but it returns the same value twice as value even for different keys. The output I'm getting: --------------------------------------------------------------
Anyone else see something I am missing (probably a real simple thing, those are the ones that I always overlook). If not, we can try some things
1. Print out the Map just after save() but before your call to load() 2. commit and close your transaction and session right after save, then open a new Session/transactiona and do a load(), to see what happens
You are sure the save is creating three records all with different speaker names in the speaker table?
Joined: Oct 03, 2004
I tried printing out the value, and you know it displays the values correctly. But then I created a all together a new session and loaded the object, but this time I'm getting the same results.
Am not really able to figure out the real problem. Values are being saved correctly, stored correctly and even keys are retrieved correctly. Then where am I going wrong ?