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 fd6cc3e5
authored
Dec 09, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just to be sure
1 parent
cc731e52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/PlaceBean.java
code/moya-database/src/main/java/fi/codecrew/moya/model/Place.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/PlaceBean.java
View file @
fd6cc3e
...
...
@@ -619,9 +619,10 @@ public class PlaceBean implements PlaceBeanLocal {
gmemfacade
.
remove
(
res
);
}
PlaceSlot
slot
=
placeSlotFacade
.
findSlotForPlace
(
place
);
// remove also slot from place
if
(
place
.
getReserverSlot
()
!=
null
)
{
PlaceSlot
slot
=
placeSlotFacade
.
reload
(
place
.
getReserverSlot
());
if
(
slot
!=
null
)
{
slot
.
setPlace
(
null
);
place
.
setReserverSlot
(
null
);
}
...
...
code/moya-database/src/main/java/fi/codecrew/moya/model/Place.java
View file @
fd6cc3e
...
...
@@ -310,6 +310,10 @@ public class Place extends GenericEntity implements Comparable<Place> {
return
buyable
;
}
/**
* NOTE: you can newer be sure that this is up to date
* @return
*/
public
PlaceSlot
getReserverSlot
()
{
return
reserverSlot
;
}
...
...
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