aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @Table Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@Table Annotation" Watch "@Table Annotation" New topic
Author

@Table Annotation

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9384
    
    2

What does the catalogue refers to in the annotation definition for @Table?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9384
    
    2

Also what does the @UniqueConstraint at a class level signify?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9384
    
    2

With respect to the @UniqueConstraints, is it something like, we can collectively place this constraint at the Type?
Like @Table.UniqueConstraint(column1, column2)??
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

What does the catalogue refers to in the annotation definition for @Table?

This is related to databases. From EJB3 In Action, "you can think of a catalog as a "meta-schema" or a higher-level abstraction for organizing schemas. Often, a database will only have one common system catalog".

Also what does the @UniqueConstraint at a class level signify?

At a class level ? What do you mean by that ? @UniqueConstraint is used in the @Table annotation. From the API :
"This annotation is used to specify that a unique constraint is to be included in the generated DDL for a primary or secondary table."


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Table Annotation