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 2c3e6382
authored
Jan 29, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'asdasd' into 'master'
Rest fix See merge request
!237
2 parents
f73d55d4
bf90958f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
code/moya-restpojo/pom.xml
code/moya-beans/ejbModule/fi/codecrew/moya/facade/PlaceFacade.java
View file @
2c3e638
...
@@ -30,6 +30,7 @@ import javax.persistence.criteria.*;
...
@@ -30,6 +30,7 @@ import javax.persistence.criteria.*;
import
fi.codecrew.moya.beans.EventBean
;
import
fi.codecrew.moya.beans.EventBean
;
import
fi.codecrew.moya.model.*
;
import
fi.codecrew.moya.model.*
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -64,9 +65,11 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
...
@@ -64,9 +65,11 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
Root
<
Place
>
root
=
cq
.
from
(
Place
.
class
);
Root
<
Place
>
root
=
cq
.
from
(
Place
.
class
);
LanEvent
event
=
eventBean
.
getCurrentEvent
();
cq
.
where
(
cq
.
where
(
cb
.
equal
(
root
.
get
(
Place_
.
id
),
id
),
cb
.
equal
(
root
.
get
(
Place_
.
id
),
id
),
cb
.
equal
(
root
.
get
(
Place_
.
map
).
get
(
EventMap_
.
event
),
eventBean
.
getCurrentEvent
())
cb
.
or
(
cb
.
equal
(
root
.
get
(
Place_
.
map
).
get
(
EventMap_
.
event
),
event
),
cb
.
equal
(
root
.
get
(
Place_
.
product
).
get
(
Product_
.
event
),
event
))
);
);
return
super
.
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
return
super
.
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
}
}
...
@@ -308,8 +311,7 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
...
@@ -308,8 +311,7 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
cb
.
equal
(
placeJoin
.
get
(
Place_
.
map
).
get
(
EventMap_
.
event
),
eventBean
.
getCurrentEvent
())
cb
.
equal
(
placeJoin
.
get
(
Place_
.
map
).
get
(
EventMap_
.
event
),
eventBean
.
getCurrentEvent
())
);
);
ProductFlag
[]
flags
=
{
ProductFlag
.
CREATE_NEW_PLACE_WHEN_BOUGHT
};
ProductFlag
[]
flags
=
{
ProductFlag
.
CREATE_NEW_PLACE_WHEN_BOUGHT
};
cq
.
where
(
cq
.
where
(
cb
.
or
(
cb
.
or
(
...
...
code/moya-restpojo/pom.xml
View file @
2c3e638
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
moya-restpojo
</artifactId>
<artifactId>
moya-restpojo
</artifactId>
<groupId>
fi.codecrew.moya
</groupId>
<groupId>
fi.codecrew.moya
</groupId>
<version>
1.0.
5
</version>
<version>
1.0.
6
</version>
<build>
<build>
<plugins>
<plugins>
<plugin>
<plugin>
...
...
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