Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 f5f56775
authored
Jan 29, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pieniaKorjailuja
1 parent
4fcdefa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
code/moya-web/WebContent/resources/templates/custom_components.css
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
View file @
f5f5677
...
...
@@ -18,6 +18,7 @@
*/
package
fi
.
codecrew
.
moya
.
facade
;
import
java.util.Arrays
;
import
java.util.Calendar
;
import
java.util.List
;
...
...
@@ -28,20 +29,12 @@ import javax.persistence.TypedQuery;
import
javax.persistence.criteria.*
;
import
fi.codecrew.moya.beans.EventBean
;
import
fi.codecrew.moya.model.*
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
fi.codecrew.moya.beans.EventBeanLocal
;
import
fi.codecrew.moya.beans.LoggingBeanLocal
;
import
fi.codecrew.moya.model.EventMap
;
import
fi.codecrew.moya.model.EventMap_
;
import
fi.codecrew.moya.model.EventUser
;
import
fi.codecrew.moya.model.LanEvent
;
import
fi.codecrew.moya.model.Place
;
import
fi.codecrew.moya.model.PlaceSlot
;
import
fi.codecrew.moya.model.Place_
;
import
fi.codecrew.moya.model.Product
;
import
fi.codecrew.moya.model.Product_
;
import
fi.codecrew.moya.utilities.moyamessage.MoyaEventType
;
@Stateless
...
...
@@ -313,9 +306,18 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
subq
.
where
(
placeJoin
.
get
(
Place_
.
id
).
isNotNull
(),
cb
.
equal
(
placeJoin
.
get
(
Place_
.
map
).
get
(
EventMap_
.
event
),
eventBean
.
getCurrentEvent
())
);
);
cq
.
where
(
root
.
get
(
Product_
.
id
).
in
(
subq
));
ProductFlag
[]
flags
=
{
ProductFlag
.
CREATE_NEW_PLACE_WHEN_BOUGHT
};
cq
.
where
(
cb
.
or
(
root
.
get
(
Product_
.
id
).
in
(
subq
),
root
.
get
(
Product_
.
productFlags
).
in
(
Arrays
.
asList
(
flags
))
),
cb
.
equal
(
root
.
get
(
Product_
.
event
),
eventBean
.
getCurrentEvent
())
);
cq
.
orderBy
(
cb
.
asc
(
root
.
get
(
Product_
.
name
)));
...
...
code/moya-web/WebContent/resources/templates/custom_components.css
View file @
f5f5677
...
...
@@ -196,7 +196,8 @@ a.shopItem:active {
}
.greenBackground
{
background-color
:
#006600
;
background-color
:
#00AA00
;
color
:
#000000
;
}
.lectureCalendar
,
...
...
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