Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What does "@" mean!?

807598Aug 2 2006 — edited Aug 2 2006
Hi, i'm new to java.
I have to find out what trails are.
so i found some lines like that:

public void setAmount(String amount)
{
this.amount = amount;
}

@Id(generate=GeneratorType.AUTO)
public Integer getId()
{
return id;
}

public void setId(Integer id)
{

as you can see, there's a litte "@" at the beginning of the sixths line.
can anyone imagine what's the meaning of this symbol(whole line)?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2006
Added on Aug 2 2006
3 comments
185 views