*
The moose likes EJB and other Java EE Technologies and the fly likes Relation between Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Relation between "patient and medication"" Watch "Relation between "patient and medication"" New topic
Author

Relation between "patient and medication"

Eva Tan
Greenhorn

Joined: Jul 10, 2011
Posts: 3
Hi Richard,

1st Congratulation for your book EJB 3.1 Cookbook, It's a good book and useful for beginner like me. And the way you manage as recipe make me more interested because I like to cook
My question is about "Relation between patient and medication" in one the book mention: one-to-many relationship, may I know the reason why? Thanks.


Regards,

Eva
Richard Reese
author
Ranch Hand

Joined: Jul 13, 2011
Posts: 57
    
    5

Eva,

I am glad that you enjoy the book. The one-to-many relationship used between a patient and a medication was used for illustration purposes only. You can have a many-to-many relationship also. I hope this answered your question.


Richard Reese
EJB 3.1 Cookbook
Java 7 New Features Cookbook
Eva Tan
Greenhorn

Joined: Jul 10, 2011
Posts: 3
Hi Richard,

I got it. Thank you for the answer. Good luck for your book and the next one too
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Relation between "patient and medication"
 
Similar Threads
Pluta's Baby
Collections framework.
How to assigned auto-generated PK to its FK - Please suggest
Difference between Dependancy and Relation
inheritance question