Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 3f198580
authored
May 24, 2014
by
Liv Haapala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pari korjausta vielä
1 parent
b3d1e761
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
code/MoyaDatabase/src/fi/codecrew/moya/model/User.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
View file @
3f19858
...
...
@@ -176,14 +176,15 @@ public class BootstrapBean implements BootstrapBeanLocal {
"ALTER TABLE card_text_data ADD COLUMN font_color_b integer DEFAULT 0;"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE card_text_data ALTER COLUMN size TYPE
double precision
;"
,
"ALTER TABLE card_object_data ALTER COLUMN size TYPE
double precision
;"
"ALTER TABLE card_text_data ALTER COLUMN size TYPE
numeric(5,2)
;"
,
"ALTER TABLE card_object_data ALTER COLUMN size TYPE
numeric(5,2)
;"
});
dbUpdates
.
add
(
new
String
[]
{
"ALTER TABLE card_text_data DROP COLUMN font_style;"
,
"ALTER TABLE card_text_data ADD COLUMN font_style TEXT NOT NULL DEFAULT 'PLAIN';"
});
}
@EJB
...
...
code/MoyaDatabase/src/fi/codecrew/moya/model/User.java
View file @
3f19858
...
...
@@ -373,7 +373,7 @@ public class User extends GenericEntity implements IUser {
public
BigDecimal
getAge
()
{
logger
.
info
(
"AgeWtf!"
);
System
.
out
.
print
(
"getAge()\n"
);
BigDecimal
age
=
new
BigDecimal
(
0
)
;
BigDecimal
age
=
BigDecimal
.
ZERO
;
if
(
birthday
!=
null
)
{
Calendar
calBirthday
=
Calendar
.
getInstance
();
calBirthday
.
setTime
(
birthday
);
...
...
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