Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hi,
as I am new to JPA I am having some qustions related to @Entity & @Table
in javax.persistence.Entity and
javax.persitence.Table
annotations we give the name of the Database Table, I mean @Entity having the attribute as "name" which mapped to a table, but some times we need some more atributes and we use @Table annotation which having more attributes available like catelog, schema etc like
@Entity
@Table(name="MyTable", schema="MySchema")
so my question are....
why there is a need of @Entity ???
for which type of functionalities we use @Entity and @Table annotations ?
what is the basic difference between @Entity and @Table ?