That's an excellent message and I had ran through same issues myself and feel 
your pain...

Regards,
Valy 

----- Original Message ----
From: simonjpalmer <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, February 23, 2007 5:34:38 AM
Subject: [flexcoders] Re: FDS/Hibernate Sample of updating hierarchical list of 
values









  


    
            PW and Jeff,



PW, you and I seem to be in the same boat.  I am trying to fight off

the people who were flex skeptics to start with.  Not being able to

write data back makes the whole thing look pretty amateur and confirms

people's belief that the technology isn't ready - which given this

experience it clearly isn't.  The baby is definitely at risk of being

thrown out with the bath water.  It stands in our company simply

because I have the final call as Technical Director (CTO if you are in

the US).



I am a huge flex advocate and really doing my best to evangelise on

the topic.  What's more I think that the bridge to operational data is

the most profound leap forward for flash, it takes it out of the world

of gimicks and into the world of real business applications.  



Jeff, you and your and team deserve huge credit for that vision and

excellent execution.



However, much as it pains me to say it, the bottom line is that the

hibernate middle tier provided does not work, as PW and I (and a host

of other people on various forums) have found.  I know that I can

re-write the whole thing myself and will probably have to, but when

introducing new technologies it is unfortunately all about initial

perception.  



I have made a career of doing this sort of thing myself and I have

seen excellent projects fail to fly because of low initial quality,

even though we fixed them immediately, the damage was done because

people's impression was that they were flaky.  I'm sure you know it is

hard to get back from that first impression and the word of mouth that

springs from it.  Once it becomes entrenched that opinion becomes fact

and you are irrevocably lost.  If I were Adobe I would be a little

worried about the tone of the posts I am seeing about integration with

Hibernate.



The Hibernate Assembler is very important and I would really hate to

see that happen to it.  The corollary is very unfortunate.  That

little bit of technology transform the boardroom conversation about

FDS.  Suddenly the cost of the licensing of FDS becomes justifiable

against the dev cost savings because we can just plug into the ORM. 

Having made that justification myself it is very difficult for me now

to go back and say, "by the way I also have to incur the dev costs". 

When asked why? I have to confess that the Adobe code doesn't work and

we don't know when we're getting a fix.  For the Flex/Flash skeptics

in the room that's a god send.



For me it is a complete nightmare.  It is hard for me to separate the

cost of FDS licenses (which is almost prohibitively large) against the

cost of dev.  I would urge Jeff and Co to get the Hibernate Assembler

code watertight and shipping asap.  If I can be of any assistance I

will gladly offer my services.



If either of you would like to contact me, post a reply and I will

happily give you my details.



Simon Palmer

Technical Director

The PMCo

62 St Peters Street

St Albans

HERTS  AL1 3HG

UK



--- In [EMAIL PROTECTED] ups.com, "parkerwhirlow" <parkerwhirlow@ ...>

wrote:

>

> Thats very unfortunate. I'm getting farther and farther into hot water

> not being able to reliably update our data model using Flex.

> 

> Last it was "just wait for 2.0.1, there's a lot of Hibernate/FDS fixes

> in it" and now we're waiting for another unknown amount of time for

> fixes we can only hope will help our situation.

> 

> I'm apologize, I understand it's not your fault, and I really

> appreciate the insight you provide as to what can be causing our

> problems, I'm just getting up to my neck in unsolved problems.

> 

> If you have any insight as to "roughly" when this next release could

> occur, can you tip me off?

> 

> thanks,

> PW

> 

> --- In [EMAIL PROTECTED] ups.com, "Jeff Vroom" <jvroom@> wrote:

> >

> > I have finished making the changes and the use of the "merge" call

seems

> > to be a) much simpler and b) more robust than the way the current code

> > works.   

> > 

> >  

> > 

> > Unfortunately we've made enough changes to the code surrounding the

> > HibernateAssembler so I can't just send you the updated file and

have it

> > work in FDS2.  It will be in an upcoming public beta but I don't think

> > we've announced the dates on that.  

> > 

> >  

> > 

> > Jeff

> > 

> >  

> > 

> > ____________ _________ _________ __

> > 

> > From: [EMAIL PROTECTED] ups.com

[mailto:[EMAIL PROTECTED] ups.com] On

> > Behalf Of parkerwhirlow

> > Sent: Thursday, February 15, 2007 3:29 PM

> > To: [EMAIL PROTECTED] ups.com

> > Subject: [flexcoders] Re: FDS/Hibernate Sample of updating

hierarchical

> > list of values

> > 

> >  

> > 

> > Hey Jeff, just curious if you've got any updated HibernateAssembler

> > code with some fixes? Any idea when this would be available?

> > 

> > thanks,

> > PW

> > 

> > --- In [EMAIL PROTECTED] ups.com

<mailto:flexcoders% 40yahoogroups. com>

> > , "Jeff Vroom" <jvroom@> wrote:

> > >

> > > My apologies - this does look like a bug. I need to do more

testing on

> > > this case myself, but I think one of the big problems here is

that we

> > > are trying to do conflict detection on our own in the hibernate

> > > assembler's updateItem method. Unless you are using a strict

isolation

> > > level in your DB (repeatable read or serializable) this is not going

> > to

> > > be transactionally correct anyway since the DB version can be

modified

> > > after we have executed the query and before we do our update. We

> > > probably should not be getting the server version at all...

hibernate

> > > has its own optimistic concurrency support that we should be

using if

> > it

> > > is enabled. That is probably the only way to get atomic conflict

> > > detection without resorting to using those particularly slow

isolation

> > > levels. 

> > > 

> > > 

> > > 

> > > That would potentially get rid of the conflicting version of the

item

> > in

> > > the transaction. The other thing I need to look into is the "merge"

> > > method in hibernate. Seems like we should probably be using that in

> > the

> > > updateItem method? I'll be working on this next week so will

send out

> > > any updates I can to the code.

> > > 

> > > 

> > > 

> > > Jeff

> > > 

> > > 

> > > 

> > > ____________ _________ _________ __

> > > 

> > > From: [EMAIL PROTECTED] ups.com

<mailto:flexcoders% 40yahoogroups. com>

> > [mailto:[EMAIL PROTECTED] ups.com

<mailto:flexcoders% 40yahoogroups. com>

> > ] On

> > > Behalf Of parkerwhirlow

> > > Sent: Thursday, February 01, 2007 6:05 PM

> > > To: [EMAIL PROTECTED] ups.com

<mailto:flexcoders% 40yahoogroups. com> 

> > > Subject: [flexcoders] FDS/Hibernate Sample of updating hierarchical

> > list

> > > of values

> > > 

> > > 

> > > 

> > > 

> > > Hi all,

> > > 

> > > I have been tearing my hair out trying to get FDS/Hibernate to

update

> > > a hierarchical list of values. Even the simplest of collection

> > > mappings in Hibernate cause various exceptions when trying to

update.

> > > 

> > > Before I post my details, does anyone have any examples of this that

> > > work? Has anyone ever even gotten this to work?

> > > 

> > > I have two objects mapped in Hibernate:

> > > 

> > > - Family

> > > ----Person

> > > 

> > > where a Family has a Set of Person "familyMembers" .

> > > 

> > > My FDS destination is to Family, and I am trying to update a family

> > > member (just the name) through this destination.

> > > 

> > > First, I was getting Hibernate NonUniqueObjectExce ption, which I

> > > finally tracked down to having my hibernate collection mapping

set to

> > > lazy=false This caused all of the family member Person objects to be

> > > loaded into the PersistenceContext when the HibernateAssembler

loaded

> > > the "serverVersion" of the Family. 

> > > 

> > > Then, once I set lazy=true on the collection mapping, I was

getting an

> > > exception that "A collection with cascade="all- delete-orphan" was no

> > > longer referenced by the owning entity instance"... since it is

> > > assigning a whole new collection to the familyMembers property one

> > > becomes unreferenced, and the other referenced. Sooo I can't use

> > > delete orphan to delete the family members when the family is

> > > deleted... OK. So then I make cascade="all" .

> > > 

> > > Now I'm getting "ORA-01407: cannot update

> > > ("SCHEMA"."T_ PERSON"." FAMILYID" ) to NULL"... I'm guessing that it's

> > > processing the dereferenced collection first (trying to detatch any

> > > Person's from the family before they're re-attached by the new

> > > collection. I can't believe this is so difficult...

> > > 

> > > For more info on my setup and test case, please see my original

post:

> > > http://tech. groups.yahoo. com/group/ flexcoders/ message/63308

> > <http://tech. groups.yahoo. com/group/ flexcoders/ message/63308> 

> > > <http://tech. groups.yahoo. com/group/ flexcoders/ message/63308

> > <http://tech. groups.yahoo. com/group/ flexcoders/ message/63308> > 

> > > 

> > > any comments as to if anyone has done this successfully are greatly

> > > appreciated!

> > > 

> > > thanks,

> > > PW

> > >

> >

>





    
  

    
    




<!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;
color:#666;
text-align:right;
}
#ygrp-actbar .left{
float:left;
white-space:nowrap;
}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;
font-size:77%;
padding:15px 0;
}
#ygrp-ft{
font-family:verdana;
font-size:77%;
border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;
}

#ygrp-vital{
background-color:#e0ecee;
margin-bottom:20px;
padding:2px 0 8px 8px;
}
#ygrp-vital #vithd{
font-size:77%;
font-family:Verdana;
font-weight:bold;
color:#333;
text-transform:uppercase;
}
#ygrp-vital ul{
padding:0;
margin:2px 0;
}
#ygrp-vital ul li{
list-style-type:none;
clear:both;
border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;
color:#ff7900;
float:right;
width:2em;
text-align:right;
padding-right:.5em;
}
#ygrp-vital ul li .cat{
font-weight:bold;
}
#ygrp-vital a {
text-decoration:none;
}

#ygrp-vital a:hover{
text-decoration:underline;
}

#ygrp-sponsor #hd{
color:#999;
font-size:77%;
}
#ygrp-sponsor #ov{
padding:6px 13px;
background-color:#e0ecee;
margin-bottom:20px;
}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;
margin:0;
}
#ygrp-sponsor #ov li{
list-style-type:square;
padding:6px 0;
font-size:77%;
}
#ygrp-sponsor #ov li a{
text-decoration:none;
font-size:130%;
}
#ygrp-sponsor #nc {
background-color:#eee;
margin-bottom:20px;
padding:0 8px;
}
#ygrp-sponsor .ad{
padding:8px 0;
}
#ygrp-sponsor .ad #hd1{
font-family:Arial;
font-weight:bold;
color:#628c2a;
font-size:100%;
line-height:122%;
}
#ygrp-sponsor .ad a{
text-decoration:none;
}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;
}
#ygrp-sponsor .ad p{
margin:0;
}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;
}
#ygrp-text tt{
font-size:120%;
}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->








 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

Reply via email to