If you use a Long or an Integer for your primary key and use a generated key strategy (as described in the tutorial), it should work. As far as using a String for a primary key, I've never done that so I can't help you. I'm sure it's possible. I'd suggest using a numeric if you want to get past this roadblock - you can always revisit the problem later.
Matt On Wed, Dec 17, 2008 at 11:18 PM, Rajesh.SriRamoju < [email protected]> wrote: > > Hi Matt > Thanks for your Reply > > Record Exists in Database. > > when we run mvn jetty:run-war the sample data will be populated into the > database > > there in the "Product list" page i can able to see 3 records which > generated > from sample-data.xml > > when i opened the existing record and save it without changing the "id" > it > is updating successfully > but when we save it by changing the "id' its giving the error as shown > below > WARN [btpool0-1] GenericDaoHibernate.get(74) | Uh oh, 'class > com.mycompany.model.Product' object with id 'xxx12' not found... > > > so i tried to ADD new record then also the same problem.... > > Iam unable to move forward in my project without solving this problem... > > And also I tried for "assign" Annotation which you suggested me ,but i did > not find any where how to do it. > Is "assign" type annotation exists if so how can we do it please help me > > Im hardly stuck here please help me out.. > Thanks in advance... > > Ragards > RajeshSR > > > > -- > View this message in context: > http://www.nabble.com/Appfuse2-object-not-found-error-tp21051854s2369p21067600.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
