This content has been marked as final.
Show 4 replies
-
1. Re: question about the seam Booking Example:
ido_tamir Jul 26, 2006 9:07 AM (in response to jason_rency) -
2. Re: question about the seam Booking Example:
pmuir Jul 26, 2006 9:07 AM (in response to jason_rency)1 how does the entity beans map the DB table?
By default the unqualified classname is the table name unless overriden with @Table(name="") annotation.aslo, I found the name of entity property is the same with the column name in the DB, is this necessary?
By default the column name is the field/property name unless overridden with the @Column(name="") annotation.
This is all in the EJB3 peristence spec and the Hibernate Annotations manual. -
3. Re: question about the seam Booking Example:
bfo81 Jul 26, 2006 9:07 AM (in response to jason_rency)There are several annotations with which you can give tables or table columns custom names.
@Entity
@Table(name="yourTableName")
public class TheEntity {
@Column(name="yourColumnName")
...property...
}
If @Column or @Table are left out, the EntityManager creates Colums and Tables with the same names the properties and classes have. -
4. Re: question about the seam Booking Example:
jason_rency Jul 26, 2006 9:15 AM (in response to jason_rency)thanks all for your promt response...
I just lost my faith...
anyone could help me with this?
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87328
this lead to my stupid question..