Calling Hibernate experts.... Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » TF Industry related » Archive through October 10, 2010 » Calling Hibernate experts.... « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7661
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:32 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ccdbmember:

inverse=true teesesi try cheyandi




ya...will try first thing tomm. morning...and will post the findings in this thread again....hopefully, the results will be good..
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ccdbmember
Junior Artist
Username: Ccdbmember

Post Number: 37
Registered: 09-2010
Posted From: 24.219.138.63

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:24 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

inverse=true teesesi try cheyandi
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7660
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:22 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

ccdb annai..
hmmm....adi cheyyagalgithe first postlone chese vadini ....
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ccdbmember
Junior Artist
Username: Ccdbmember

Post Number: 36
Registered: 09-2010
Posted From: 24.219.138.63

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:18 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

yes, inverse = true should also suffice. but mee code snippet paste cheyagalugutaraa if it's okay.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20842
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:05 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:

ardham kale annai...




ado pedda kadha..try options suggested by otehrs.
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7659
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:03 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

cut the dependency and make sure code implements ri,rather than database.




ardham kale annai...
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Blackmamba
Side Hero
Username: Blackmamba

Post Number: 2060
Registered: 05-2010
Posted From: 76.31.204.36

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:03 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:



Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20841
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 10:01 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:

consrtaints disbale cheseshi ala db la padesthe, DB credibilty pothadi kada annai..



Maverick:

cut the dependency and make sure code implements ri,rather than database.


Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7658
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:59 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ccdbmember:

mee one-to-many relation ship lo mappedBy="parentObject" ani pettandi so that the parent is the owner of the relationship.. hibernate should take take care of executing the sql in correct order




idhi try cheyyali.....hbm mapping file lo ippud 'inverse' option vaduthunam ippud....adhi kuda parent-child relationship lo owner decide sesednuke kada anukuntunna..

Maverick:

Disabling FK and Not Null Constraints In Hibernate

ee app aina ee options icchi teerali..see if it helps




consrtaints disbale cheseshi ala db la padesthe, DB credibilty pothadi kada annai...DB lo insert avavdam entha important vo, danilo valid data insert avvadam kuda anthe important kada...code lo ne something missing anukuntunna, which is causing this problem..
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20840
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:58 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

sorry idi

http://www.coderanch.com/t/217372/ORM/java/hibernate-disable -foreign-keys

i am not a java guy now...check it out
Top of pagePrevious messageNext messageBottom of page Link to this message

Ccdbmember
Junior Artist
Username: Ccdbmember

Post Number: 35
Registered: 09-2010
Posted From: 24.219.138.63

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

mee one-to-many relation ship lo mappedBy="parentObject" ani pettandi so that the parent is the owner of the relationship.. hibernate should take take care of executing the sql in correct order
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20839
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:




http://www.coderanch.com/t/219163/ORM/java/Disabling-FK-Not- Null-Constraints
Disabling FK and Not Null Constraints In Hibernate

ee app aina ee options icchi teerali..see if it helps
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7657
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

app dwara before load disable chesi after load enable chese option leda?




kudardi annai...
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20838
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:52 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:

adhi app dwara run time lo insert cheseppudu problem vasthundi annai...istraight ga DB loki load seseppudu kaadi....




app dwara before load disable chesi after load enable chese option leda?
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7656
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

enable them afterwards, cut the dependency and make sure code implements ri,rather than database. u can load in parallel and improves performance.




adhi app dwara run time lo insert cheseppudu problem vasthundi annai...istraight ga DB loki load seseppudu kaadi....
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20837
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:49 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:




enable them afterwards, cut the dependency and make sure code implements ri,rather than database. u can load in parallel and improves performance.
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7654
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:47 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

disable constraints and load





Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7653
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:45 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Venkateswarlu:

but looks like trigger not working right on child table.. aa trigger raasina sendaalki gaanni rendu peeku




...hmmm....trigger wishyam kanna, trouble is in hibernate settings anukuntunna annai....trigger side ani telusthe office lo kurrolaki raktapatame...
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Megastar
Username: Maverick

Post Number: 20835
Registered: 01-2008
Posted From: 24.1.171.91

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:44 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

disable constraints and load
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7652
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:44 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ccdbmember:

one-to-many relationship lo cascade option use cheyandi




ante parent side cascade=all edithe , parent ki oka operation sethe, adhe child meeda kuda cheyyi ani chepthunam kaani, always do the parent operation first ani cheppatledu kada ?....
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Venkateswarlu
Side Hero
Username: Venkateswarlu

Post Number: 5293
Registered: 01-2010
Posted From: 68.105.81.175

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:40 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Npa:

.parent table lo insert avvalsina row inka flush avvakundane, child table yokka insert query fire avuthundi....


Manadi ee field kaadu.. telsu kadaa.. but looks like trigger not working right on child table.. aa trigger raasina sendaalki gaanni rendu peeku...
In this db, there's always someone watching you!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Ccdbmember
Junior Artist
Username: Ccdbmember

Post Number: 34
Registered: 09-2010
Posted From: 24.219.138.63

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:40 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

one-to-many relationship lo cascade option use cheyandi
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7650
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:37 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

denemma..ardham ayyetu seppana leka confuse seshi padadobbana....
Steve Nash..The Best Quaterback of NBA.
Top of pagePrevious messageNext messageBottom of page Link to this message

Npa
Side Hero
Username: Npa

Post Number: 7647
Registered: 05-2007
Posted From: 69.138.33.184

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, October 08, 2010 - 09:33 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

oka parent table undi.....inko child table undi...one to many relationship...parent table okka primary key child table ki foreign key ga undi...

concept prekaram, parent table loki oka record insert avvali and corresponding child table la kuda insert avvali...

problem is...parent table lo insert avvalsina row inka flush avvakundane, child table yokka insert query fire avuthundi....daani valla consraint violation exceptions on child table vasthandi....

how do i let hibernate know that fire the insert query fort he child table only after flushing the parent table....
Steve Nash..The Best Quaterback of NBA.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0xa01ed44){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: