These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: insertable=false not workining in @Embeddable primary key
PostPosted: Sun Jun 15, 2014 7:28 am 
Beginner
Beginner

Joined: Sat Jun 24, 2006 7:05 am
Posts: 20
I've an entity with a primary key in a different class annotated with @Embeddable.
The column of such primary key is annotated with insertable=false.
When I try to persist my entity I see the insert statement including fields in primary key.
Is it a bug ?
How can I avoid such problem ?
Tks
Tullio

Code:
@Embeddable
public class V41tipiEventoPk extends PkBase {

   private static final long serialVersionUID = 1L;
   
    @Column(name="CODS41",insertable=false,updatable=false)
   private String cods41;


Top
 Profile  
 
 Post subject: Re: insertable=false not workining in @Embeddable primary key
PostPosted: Fri Jun 20, 2014 1:47 am 
Beginner
Beginner

Joined: Sat Jun 24, 2006 7:05 am
Posts: 20
Nobody van help ?
I'm using Hibernate 4.3.5
Tks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.