-->
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.  [ 3 posts ] 
Author Message
 Post subject: Newbie needs help with annotations
PostPosted: Sat Aug 12, 2006 11:12 am 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]

I'm running hibernate 3.2.0.cr2 and annotations 3.2.0.cr1. I'm trying
to understand annotations using the "Annotations User's Guide".
Unfortunately, there are a number of things in the guide that don't
seem to exist anymore. For example, the javadoc doesn't show any
@Id annotatione and the @Table annotation doesn't have a "name" field.
I assume the documentation is behind the code (I've never been
guilty of doing this myself :-) ) but I wonder if there is any "change log"
or anything where I might get the latest info. Thanks.

Steve Buroff


Top
 Profile  
 
 Post subject: Does that help you?
PostPosted: Sat Aug 12, 2006 1:53 pm 
Newbie

Joined: Sat Aug 12, 2006 10:09 am
Posts: 2
Code:
/*
* @hibernate.class
*            table="project"
*
*/
public class Project implements Serializable {

/**
  *  @hibernate.id generator-class="identity"
  *  @hibernate.column name="project_id"
  *            index="project_project_id_idx"
  *  @hibernate.generator-param name="sequence"
  *            value="project_project_id_seq"
  */
    public long getProjectId() {
        return this.projectId;
    }

....




Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 12, 2006 2:00 pm 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
Not exactly. I'm trying to use the annotations, not the javadocs.
Thanks though.

Steve


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.