A set of limiting conditions or measures to delimit the behavior of software.
Questions tagged [restrictions]
232 questions
3
votes
0 answers
hibernate criteria sqlRestriction
I have:
criteria.createAlias(withAlias(alias, PLAN_PROPERTY), PLAN_ALIAS)
.add(Restrictions.eqProperty(withAlias(alias, "course"), withAlias(PLAN_ALIAS, "years")));
where course is integer, years is float.
Need to do FLOOR() on…

Max Makarov
- 63
- 9
3
votes
1 answer
Hibernate criteria with dynamic OR restrictions
I would like to add OR restricions dynamically to a Hibernate criteria based on the number of elements on an array.
In the example below, Project is an entity, and a @OneToMany property of the User entity. Project entity has a property called name.…

Jose Ospina
- 2,097
- 3
- 26
- 40
3
votes
1 answer
Trying to use MySQL fields as a restriction for data
I'll try to make this as concise as possible, but any help is greatly appreciated. My skill level is slightly above minimal in PHP/MySQL so I'm using Dreamweaver CS6 to try to get my site up and running. I need to be able to restrict data returned…

Joe Cook
- 25
- 5
3
votes
1 answer
Pointer to array and errors C2057, C2540
I want to do something like:
const int N = 10;
void foo (const int count)
{
int (* pA) [N][count] = reinterpret_cast(new int[N * count]);
...
}
But my compiler (VS2010) doesn't want to do it:
error C2057: expected constant…

user1234567
- 3,991
- 3
- 19
- 25
3
votes
1 answer
How does Hibernate function Restrictions.allEq(Map) treat null values?
I'm wondering how the Hibernate function Restrictions.allEq(Map ...) treats null values inside input Map (if as multiple Restrictions.eq(String, Object) or Restrictions.eqOrIsNull(String, Object)) or whatelse).
After a quick search…

mginius
- 104
- 2
- 12
3
votes
2 answers
xsd:SimpleType: How to restrict attribute to specific values and regex values
I have an attribute that can be any string, but if it has starting and ending brackets "^[.*]$" - it must be only one of the following specific values:
"[EVENT]"
and
"[PROTOCOL]"
So, "[EVENT]", "[PROTOCOL]", "SomeString" - are correct, but…

lyres
- 115
- 7
3
votes
0 answers
Control iOS Default Restrictions Settings within your app
I just found a great app that can let you control to display the apps on your child's iPhone/iPad. The name of the app is 'ParentKit'. I have understood what the app is doing but don't know how it is doing.
It is basically accessing the…

Mohit Manhas
- 3,471
- 1
- 17
- 21
3
votes
1 answer
Protege exactly 1 cardinality OWL restriction not raising an inconsistency
I think I am going crazy! I have followed the various tutorials for Owl and Protege and still cannot figure out the answer. Use case is simple. I have defined a class called ‘Person’. I have defined a data property called hasFirstName. I have added…

Alex
- 43
- 3
3
votes
1 answer
Detect if general website restrictions are enabled under iOS7
I'm using UIWebViews in an iOS 7 app to display content. Unfortunally it happens that users have enabled the system wide restrictions for websites that were introduced with iOS 7. Although I have nothing of the category 'adult' in my webview content…

Funkybit
- 359
- 1
- 2
- 15
3
votes
0 answers
UIRequiredDeviceCapabilities & XCode
So, I'm submitting an app that should only run on the iPhone 4, 4s, 5 & iPod Touch 5G, so I decided to add "UIRequiredDeviceCapabilities" to my plist with the "camera-flash" value which would accomplish that.
However, I'm still able to download and…

varunsrin
- 860
- 2
- 15
- 24
3
votes
1 answer
Date Overlaps in Hibernate Restrictions
In SQL, we can check the date overlaps as
SELECT (DATE '2001-02-16', DATE '2001-12-21') OVERLAPS
(DATE '2001-10-30', DATE '2002-10-30');
How can we imitate the same using hibernate Restrictions ?

Gopinagh.R
- 4,826
- 4
- 44
- 60
3
votes
2 answers
Hibernate Criteria Restrictions: comparing two properties as simple expression
I have a Hibernate Criteria, for which the following works:
criteria.add(Restrictions.eqProperty("x", "tbl.y"));
but I now want to modify the criteria to check a range of possible values ('x' and 'y' are both integers), for example, this doesn't…

Stewart
- 17,616
- 8
- 52
- 80
3
votes
0 answers
How to restrict facebook usage to just sharing content on a museum/science center kiosk station
so we set up some installations in a science center, where the end results are images and videos, which are uploaded to a server which is available from the outside (web). From one certain kiosk station the users can browse through their material…

Anders Figenschow
- 31
- 2
3
votes
2 answers
Restrict integer template parameter
I've a code smth like this:
template
class XYZ {
public:
enum { value = N };
//...
}
Is there a way to restrict N in some way? Specifically I want to allow compilation only if N is divided by some number, let's say 6.
So it…

IgorStack
- 799
- 2
- 6
- 22
2
votes
0 answers
iOS: using ShareKit 2.0 to access Facebook. Need to set restriction for alcohol for the app
I am developing an iOS app for an alcohol related company. The app is a sort of treasure hunt, kind of. They want the app user to be able to upload to Facebook when they find one of the virtual objects that they have scattered around.
I am using…

chadbag
- 1,837
- 2
- 20
- 34