Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fc9271d2
authored
Mar 09, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed vat default value to 0 from 0.22 in BillLine
1 parent
a6564930
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/BillLine.java
View file @
fc9271d
...
...
@@ -32,7 +32,7 @@ import javax.persistence.Version;
@NamedQuery
(
name
=
"BillLine.findByVat"
,
query
=
"SELECT b FROM BillLine b WHERE b.vat = :vat"
)
})
public
class
BillLine
implements
ModelInterface
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
BigDecimal
DEFAULT_VAT
=
new
BigDecimal
(
0.22
)
;
private
static
final
BigDecimal
DEFAULT_VAT
=
BigDecimal
.
ZERO
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"bill_lines_id"
,
nullable
=
false
)
...
...
@@ -47,7 +47,7 @@ public class BillLine implements ModelInterface {
@Column
(
name
=
"unit_price"
,
nullable
=
false
,
precision
=
24
,
scale
=
4
)
private
BigDecimal
unitPrice
;
@Column
(
name
=
"vat"
,
nullable
=
false
,
precision
=
3
,
scale
=
2
,
columnDefinition
=
"numeric(3,2) default 0.22"
)
@Column
(
name
=
"vat"
,
nullable
=
false
,
precision
=
3
,
scale
=
2
)
private
BigDecimal
vat
=
DEFAULT_VAT
;
@JoinColumn
(
name
=
"bills_id"
,
referencedColumnName
=
"bills_id"
)
...
...
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