A set of limiting conditions or measures to delimit the behavior of software.
Questions tagged [restrictions]
232 questions
0
votes
1 answer
org.hibernate.MappingException: Unknown entity: java.util.ArrayList
I tried to map the groupIds list into the sqlrestriction below but got the error. How should I map it?
List groupIds = new ArrayList();
...
...
Restrictions.sqlRestriction(
"{alias}.id in (select id from table where…

iPhoneJavaDev
- 821
- 5
- 33
- 78
0
votes
1 answer
iOS app with content downloading automatically (about App Store policy)
I have an app in the App Store with a number of different soundboards. I release updates every once in a while with new content. Some content however is forbidden by Apple (foul language) resulting in updates being rejected. To make updating faster…

Tum
- 6,937
- 2
- 25
- 23
0
votes
2 answers
Prevent access video HLS/Android
I'm preventing direct access to videos, played by Projekktor, at a website. The restriction is set within the .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.ltd [NC]
RewriteCond %{HTTP_REFERER}…

Joachim
- 320
- 3
- 12
0
votes
1 answer
User Restrictions based on Field Content in MS Access
I need to set up user permissions within the same table, based on the value of a field. I know that this is not directly possible in Access but a post on Allenbrown.com points to a way of doing this see here. I'm not proficient in coding so I'm…

Bernardo
- 5
- 3
0
votes
1 answer
Can I add Restriction.eq() for list?
I have this piece of code:
public String getEventsForCalendar(@RequestParam("userId") Long userId){
Session session = NewHibernateUtil.getSessionFactory().getCurrentSession();
try{
session.beginTransaction();
JSONArray…

Radek Anuszewski
- 1,812
- 8
- 34
- 62
0
votes
1 answer
How to aggregate exchanges without restrictions
We have current situation. I use Apache Camel, split large file for small exchanges (using splitter, see below) and validate them. Then I need aggregate messages, but I use aggregator and it requires setup complition size or another. Can I aggragate…

Olena Nagorna
- 25
- 6
0
votes
1 answer
one-to-many relation and multiple conditions using Criteria
I have 2 tables:
a master table with single attributes of some objects (id, name, title, ...)
a table with repeating attributes (master_id, attribute_name, attribute_value)
Example data for #2:
- 10, "authors", "John Bill"
- 10, "authors",…

user3494426
- 1
- 1
0
votes
1 answer
Android - Way to remember the details selected
I am currently developing an android app to help coaches.
The idea of the game is not to let the players play in the same position twice. I have a list view which contains the names of the players. I then select a name and drop it on a position…

user3275801
- 1
- 3
0
votes
2 answers
How to restrict users in my AWS account from accessing public AMIs
I want the users want to use the private [shared from another account] or owned AMIs only. I've tried searching in the AWS documentation and stckoverflow. Does any one know if this can be done?
Thanks
0
votes
2 answers
Only allow a View, Linear Layout, Button or anything to take up 50% of the screen
I have a little problem when it comes to programming my Android app. I want to have 2 Images beside each other that could be different sizes, they could also be the same size but that's not the problem for me. One of them can be REALLY large while…

eXpliCo
- 33
- 4
0
votes
4 answers
How to limit JTextFiled to accept only numbers less then 10?
How to restrict a JTextFiled to accept only numbers less then 10, no words, no spaces or any other special characters?

user3210099
- 9
- 1
- 2
0
votes
1 answer
Hibernate comparing value(or parts of) to 2 columns
I have 2 columns name: name, surname
I have a search value called search. I want to be able to search on the fullname for example: john doe. (with the space). So far I got it working with only name, or surname by typing in john or doe.
This is what…

DaViDa
- 641
- 1
- 8
- 28
0
votes
1 answer
Crystal Array Query
I am currently having problems with a crystal report. I am pretty new at using Crystal but have a solid access background. I have inherited this report at a new job.
The report has 2 arrays (I think) in place that restrict who can see orders that…

Lee83
- 1
0
votes
1 answer
Google places/geometry library for only one country
im including this librarys into my page,
i'm searching for a url-parameter that restricts the librarys only for one…

john Smith
- 17,409
- 11
- 76
- 117
0
votes
2 answers
Working around superfirst
Here, AsciiChecker enables the matrix specification in the text form.
abstract class AsciiChecker extends AlgoritmicChecker {
String[] ascii;
AsciiChecker(String title, final String ... ascii) {
super(title, ascii[0].length(),…

Val
- 1
- 8
- 40
- 64