Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3de28dd
authored
Mar 08, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the last @NamedQuery problem
1 parent
828df496
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Location.java
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
View file @
e3de28d
No preview for this file type
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Location.java
View file @
e3de28d
...
...
@@ -20,10 +20,9 @@ import javax.persistence.Version;
*/
@Entity
@Table
(
name
=
"locations"
)
@NamedQueries
(
{
@NamedQueries
({
@NamedQuery
(
name
=
"Location.findAll"
,
query
=
"SELECT l FROM Location l"
),
@NamedQuery
(
name
=
"Location.findByLocationName"
,
query
=
"SELECT l FROM Location l WHERE l.locationName = :name"
)
})
@NamedQuery
(
name
=
"Location.findByLocationName"
,
query
=
"SELECT l FROM Location l WHERE l.name = :name"
)
})
public
class
Location
implements
ModelInterface
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment