Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Hibernate: table without primary key

 
   Database Forums (Home) -> Java RSS
Next:  [ANNOUNCE] New Release of Mogwai ERDesigner NG  
Author Message
Andre Rothe

External


Since: Jan 04, 2008
Posts: 2



(Msg. 1) Posted: Fri Jan 18, 2008 12:00 pm
Post subject: Hibernate: table without primary key
Archived from groups: comp>lang>java>databases (more info?)

Hi,

Is there a possibility in Hibernate to create a table without a primary
key (without the @Id annotation)? I set up a with a dummy key, but I
hate this solution.

Thanx
Andre

 >> Stay informed about: Hibernate: table without primary key 
Back to top
Login to vote
Avinash Ramana

External


Since: Feb 10, 2008
Posts: 1



(Msg. 2) Posted: Sun Feb 10, 2008 12:53 pm
Post subject: Re: Hibernate: table without primary key [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 18, 8:30 am, Andre Rothe
wrote:
> Hi,
>
> Is there a possibility in Hibernate to create a table without a primary
> key (without the @Id annotation)? I set up a with a dummy key, but I
> hate this solution.
>
> Thanx
> Andre

No. Hibernate uses the primary key as a method of keeping identity.
Dummy key is fine


-Avinash

 >> Stay informed about: Hibernate: table without primary key 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Oracle toplink 10g - No primary table is specified - I have upgraded from toplink 9 to toplink 10.1.3.1 and I am now getting a warning on descriptors that do not specify a primary table, but are inheriting from a descriptor that is mapped to a primary table. In toplink 9, I did not receive a warning for..

How to map the table classes have more than one columns fo.. - I have two existed tables, I am NOT allow to altering those tables The 1st table (tableA) has one column for its primary key, the 2nd table (tableB) has tow columns for its primary key. I am try to map these two tables with Hibernate XML. Here are my XML...

Hibernate / MS SQL / Unicode - Hi, I have a web-apps that sends unicode data to my servlet. I can save it ot he MS SQL server and when I read it using JDBC client (Squirrel), I can see the unicode correctly in the DB. I use Hibernate to read/write to the DB. I Hibernate reference....

[Hibernate] MappingException - Hello, I encounters a problem while using 'ShemaExport' Hibernate functionnality: [schemaexport] GRAVE: Could not compile the mapping document [schemaexport] org.hibernate.MappingException: class foot.hibernate.Game not found while looking for..

Hibernate and session - While reading hibernate quick start with tomcat, I found that developer need to write their own HibernateUtil to manage sessions. Shouldn't it be automatically handled by framework? Thanks
   Database Forums (Home) -> Java All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]