Forums Register Login

@Table Annotation

+Pie Number of slices to send: Send
What does the catalogue refers to in the annotation definition for @Table?
+Pie Number of slices to send: Send
Also what does the @UniqueConstraint at a class level signify?
+Pie Number of slices to send: Send
With respect to the @UniqueConstraints, is it something like, we can collectively place this constraint at the Type?
Like @Table.UniqueConstraint(column1, column2)??
+Pie Number of slices to send: Send
 

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."
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1001 times.
Similar Threads
Hiberante annotations
Apache Derby Sql Statement's
Using Oracle sequence with JBOSS
How to stop inserting in table defined in @SecondaryTable
Schema and Catalogue - Difference?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:54:16.