-->
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.  [ 1 post ] 
Author Message
 Post subject: Persister une List
PostPosted: Mon Feb 13, 2012 8:17 am 
Newbie

Joined: Mon Feb 13, 2012 8:12 am
Posts: 1
Bonjour,

Je persiste une List dans ma classe entity comme ci-dessous (de tête):

Code:
@OneToMany
@JoinColumn
private List<Account> accounts;

private List<Account> getAccounts() {
      return this.accounts;
}

private void setAccount(List<Account> accounts){
      this.accounts = accounts;
}


Lorsque je persiste mon entity dans la BDD elle s'enregistre correctement. Au moment de la récuperer je peu accéder à tous mes autres paramètres sauf à ma liste. J'ai une erreur certainement à cause du Lazy loading.

Quelqu'un aurait une idée ? Je pense avoir oublié une annotation
Merci


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

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.