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 828df496
authored
Mar 07, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
1 parent
182f8ab5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/RoleRight.java
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
View file @
828df49
No preview for this file type
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
View file @
828df49
...
@@ -24,8 +24,7 @@ import javax.persistence.Version;
...
@@ -24,8 +24,7 @@ import javax.persistence.Version;
@Table
(
name
=
"bill_lines"
)
@Table
(
name
=
"bill_lines"
)
@NamedQueries
(
{
@NamedQueries
(
{
@NamedQuery
(
name
=
"BillLine.findAll"
,
query
=
"SELECT b FROM BillLine b"
),
@NamedQuery
(
name
=
"BillLine.findAll"
,
query
=
"SELECT b FROM BillLine b"
),
@NamedQuery
(
name
=
"BillLine.findByProduct"
,
query
=
"SELECT b FROM BillLine b WHERE b.name = :name"
),
@NamedQuery
(
name
=
"BillLine.findByProduct"
,
query
=
"SELECT b FROM BillLine b WHERE b.product = :name"
),
@NamedQuery
(
name
=
"BillLine.findByUnits"
,
query
=
"SELECT b FROM BillLine b WHERE b.units = :units"
),
@NamedQuery
(
name
=
"BillLine.findByUnits"
,
query
=
"SELECT b FROM BillLine b WHERE b.units = :units"
),
@NamedQuery
(
name
=
"BillLine.findByUnitPrice"
,
query
=
"SELECT b FROM BillLine b WHERE b.unitPrice = :unitPrice"
),
@NamedQuery
(
name
=
"BillLine.findByUnitPrice"
,
query
=
"SELECT b FROM BillLine b WHERE b.unitPrice = :unitPrice"
),
@NamedQuery
(
name
=
"BillLine.findByVat"
,
query
=
"SELECT b FROM BillLine b WHERE b.vat = :vat"
)
})
@NamedQuery
(
name
=
"BillLine.findByVat"
,
query
=
"SELECT b FROM BillLine b WHERE b.vat = :vat"
)
})
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/RoleRight.java
View file @
828df49
...
@@ -20,12 +20,19 @@ import javax.persistence.Version;
...
@@ -20,12 +20,19 @@ import javax.persistence.Version;
*/
*/
@Entity
@Entity
@Table
(
name
=
"role_rights"
)
@Table
(
name
=
"role_rights"
)
@NamedQueries
(
{
@NamedQueries
(
{
@NamedQuery
(
name
=
"RoleRight.findAll"
,
query
=
"SELECT r FROM RoleRight r"
)
@NamedQuery
(
name
=
"RoleRight.findAll"
,
query
=
"SELECT r FROM RoleRight r"
),
/*
* ,
@NamedQuery
(
name
=
"RoleRight.findByRead"
,
query
=
"SELECT r FROM RoleRight r WHERE r.read = :read"
),
*
@NamedQuery
(
name
=
"RoleRight.findByWrite"
,
query
=
"SELECT r FROM RoleRight r WHERE r.write = :write"
),
* @ NamedQuery ( name = "RoleRight.findByRead" , query =
@NamedQuery
(
name
=
"RoleRight.findByExecute"
,
query
=
"SELECT r FROM RoleRight r WHERE r.execute = :execute"
)
})
* "SELECT r FROM RoleRight r WHERE r.read = :read" ) ,
*
* @ NamedQuery ( name = "RoleRight.findByWrite" , query =
* "SELECT r FROM RoleRight r WHERE r.write = :write" ) ,
*
* @ NamedQuery ( name = "RoleRight.findByExecute" , query =
* "SELECT r FROM RoleRight r WHERE r.execute = :execute" )
*/
})
public
class
RoleRight
implements
ModelInterface
{
public
class
RoleRight
implements
ModelInterface
{
private
static
final
long
serialVersionUID
=
1L
;
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