Forums Register Login

Hibernate table relations and fetching single record from db

+Pie Number of slices to send: Send
hello,
i have two tables table1(profile),table2(useraccount),where in table1 profileId is a primary key and in table2 account id is a primary key and field username is common in both and now for testing purpose i have inserted few record in both the tables with same username i can able to fetch the record from useraccount table using username but i couldnot able to fetch the record from profile with the same username am using dto calss where all getters and setters are present

can any body help me in sorting out this issue
Thanks in advance
+Pie Number of slices to send: Send
Hi and welcome to the JavaRanch.

I had a hard time reading your question as it is one big sentence. Please use sentences next time.

Why weren't you able to fetch the user? Remember ItDoesntWorkIsUseless.
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1129 times.
Similar Threads
One - to -one mapping using non primary key
ID_NAME in two tables
Need urgent help in integrity constraints
one-to-many mapping with table having no primay key
How do I map this?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:58:31.