-->
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: basic annotations question - location of @Id and @Table
PostPosted: Thu Oct 19, 2006 1:56 am 
Newbie

Joined: Thu Oct 19, 2006 1:44 am
Posts: 1
Hi all,

I am missing something bigtime... I just downloaded Annotations 3.2 and the Core 3.2. I'm trying to implement the basic example from the pdf doc:

@Entity
public class Flight implements Serializable {
Long id;
@Id
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
}

I cannot locate @Id anywhere in the jars. Entity is found, but Table takes different parameters. What's going on (besides senility!). I'm obviously looking in the wrong jar, but I can't seem to locate these annotations anywhere.

Thanks for helping!

Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 6:07 pm 
Newbie

Joined: Wed Oct 11, 2006 5:16 pm
Posts: 5
those annotations are provided by your container. in jboss4, look in the ejb.deployer folder in the deploy dir of your app. they're in jboss-ejb3.jar and jboss-ejb3x.jar

-jason


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.