title: Why do we use @Embeddable In Hibernate
body: <p>What's the use of <code>@Embedded</code> and <code>@Embeddable</code> In Hibernate ? Because every example i found on internet is inserting data inside of a single table and to do that using two different class. My point is if I am using a single table then I can map all the columns inside of a single class then why should i use different class. and if We use two different table then there is <code>one-to-one</code> and <code>one-to-many</code> hibernate relationship.</p>