Issue Details (XML | Word | Printable)

Key: APF-698
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Dale Frye
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Persistence tutorial code missing import

Created: 17/Mar/07 12:29 AM   Updated: 26/Mar/07 09:10 AM   Resolved: 26/Mar/07 09:10 AM
Component/s: Documentation
Affects Version/s: 2.0-M3
Fix Version/s: 2.0-M4

Environment: Eclipse, Java 5, Windows XP


 Description  « Hide
The persistence tutorial code is missing:

import javax.persistence.*;

without this the annotations will not compile.


Matt Raible added a comment - 17/Mar/07 01:33 AM
You should be able to use the "Organize Imports" feature of your IDE to resolve imports. Of course, if you think the tutorials would be easier w/ this addition - we'll be happy to add it.

Dale Frye added a comment - 26/Mar/07 12:34 AM
The reason I would argue to include it is because it is not your typical import problem. I spent a fair amount of time playing with the annotations settings of Eclipse trying to get this to work. Only after I did some searching on the net and just happened to find some code that did have the include did I finally realize that was the problem. This may be the first time many people actually start using these particular annotations and don't realize they just need the import. Also not everyone may be using an IDE. I can understand not wanting to include all the include statements in the tutorial listing. I would suggest just include them if there are only one or two. Beyond that put a comment in the code that includes are not listed and will need to be added by the user using Organize Imports.

Thanks for the support!

Matt Raible made changes - 26/Mar/07 09:10 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Fix Version/s 2.0-M4 [ 10130 ]
Status Open [ 1 ] Resolved [ 5 ]