• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate table relations and fetching single record from db

 
arun kumar bv
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic