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 b7abfbcc
authored
Jan 19, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paikkakartta laskee paremmin jäljelläolevat. default-arvoja.
1 parent
8aeca4f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
code/moya-database/src/main/java/fi/codecrew/moya/model/LanEventPropertyKey.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
View file @
b7abfbc
...
@@ -203,8 +203,8 @@ public class ProductBean implements ProductBeanLocal {
...
@@ -203,8 +203,8 @@ public class ProductBean implements ProductBeanLocal {
public
HashMap
<
Integer
,
BigDecimal
>
getProductLimit
(
Map
<
Integer
,
BigDecimal
>
prodCounts
,
EventUser
user
)
public
HashMap
<
Integer
,
BigDecimal
>
getProductLimit
(
Map
<
Integer
,
BigDecimal
>
prodCounts
,
EventUser
user
)
{
{
Set
<
Role
>
userroles
=
new
HashSet
<
Role
>(
userbean
.
findUsersRoles
(
user
));
Set
<
Role
>
userroles
=
new
HashSet
<>(
userbean
.
findUsersRoles
(
user
));
HashMap
<
Integer
,
BigDecimal
>
ret
=
new
HashMap
<
Integer
,
BigDecimal
>();
HashMap
<
Integer
,
BigDecimal
>
ret
=
new
HashMap
<>();
for
(
Entry
<
Integer
,
BigDecimal
>
pc
:
prodCounts
.
entrySet
())
for
(
Entry
<
Integer
,
BigDecimal
>
pc
:
prodCounts
.
entrySet
())
{
{
Product
prod
=
productFacade
.
find
(
pc
.
getKey
());
Product
prod
=
productFacade
.
find
(
pc
.
getKey
());
...
...
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
View file @
b7abfbc
...
@@ -232,8 +232,12 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
...
@@ -232,8 +232,12 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
cq
.
where
(
cq
.
where
(
cb
.
equal
(
root
.
get
(
Place_
.
map
),
map
),
cb
.
equal
(
root
.
get
(
Place_
.
map
),
map
),
cb
.
isFalse
(
root
.
get
(
Place_
.
disabled
))
cb
.
isFalse
(
root
.
get
(
Place_
.
disabled
)),
);
// TKwtf lisäsi:
cb
.
isTrue
(
root
.
get
(
Place_
.
buyable
))
);
return
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
return
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
...
@@ -256,7 +260,10 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
...
@@ -256,7 +260,10 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
cb
.
equal
(
root
.
get
(
Place_
.
map
),
map
),
cb
.
equal
(
root
.
get
(
Place_
.
map
),
map
),
cb
.
isNull
(
root
.
get
(
Place_
.
releaseTime
)),
cb
.
isNull
(
root
.
get
(
Place_
.
releaseTime
)),
cb
.
isNull
(
root
.
get
(
Place_
.
group
)),
cb
.
isNull
(
root
.
get
(
Place_
.
group
)),
cb
.
isFalse
(
root
.
get
(
Place_
.
disabled
))
cb
.
isFalse
(
root
.
get
(
Place_
.
disabled
)),
// TKwtf lisäsi:
cb
.
isTrue
(
root
.
get
(
Place_
.
buyable
))
);
);
return
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
return
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
...
...
code/moya-database/src/main/java/fi/codecrew/moya/model/LanEventPropertyKey.java
View file @
b7abfbc
...
@@ -43,7 +43,7 @@ public enum LanEventPropertyKey {
...
@@ -43,7 +43,7 @@ public enum LanEventPropertyKey {
TEMPLATE_PROPERTY4
(
Type
.
TEXT
,
null
),
TEMPLATE_PROPERTY4
(
Type
.
TEXT
,
null
),
TEMPLATE_PROPERTY5
(
Type
.
TEXT
,
null
),
TEMPLATE_PROPERTY5
(
Type
.
TEXT
,
null
),
INVITE_ONLY_EVENT
(
Type
.
BOOL
,
null
),
INVITE_ONLY_EVENT
(
Type
.
BOOL
,
null
),
USE_ETICKET
(
Type
.
BOOL
,
null
),
USE_ETICKET
(
Type
.
BOOL
,
"1"
),
ETICKETMAIL_SUBJECT
(
Type
.
TEXT
,
"Your etickets to Moya Online Youth Accumulator"
),
ETICKETMAIL_SUBJECT
(
Type
.
TEXT
,
"Your etickets to Moya Online Youth Accumulator"
),
ETICKETMAIL_CONTENT
(
Type
.
TEXT
,
"Hello {1},\n\nYou can find your etickets to an event from: {0}"
),
ETICKETMAIL_CONTENT
(
Type
.
TEXT
,
"Hello {1},\n\nYou can find your etickets to an event from: {0}"
),
MAP_QUEUE
(
Type
.
BOOL
,
null
),
MAP_QUEUE
(
Type
.
BOOL
,
null
),
...
...
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