it needs to be set to 19 because I don't want to compile for 21
I have no idea why. The compileSdkVersion (what in Eclipse is the
build target set in Project > Properties > Android) has no impact on
what devices you can run on.
Is this not possible?
You cannot use code that conditionally uses API Level 21 constructs
(classes, styles/themes, etc.) without having your compileSdkVersion/b
RestEasy has the CorsFilter. But since you are using Glassfish, you
are most likely using Jersey. Jersey doesn't seem to have any such
class we can use. That said, the CorsFilter for RestEasy implements
ContainterRequestFilter and ContainerResponseFilter (Note, this is a
Jersey 2.x (JAX-RS 2.0) feature).
See Filters and Interceptors for more information
You can also see the source code for the
You should implement it as separate table:
Ingredients('id', 'recipe_id', 'name', 'amount')
Then, you can simply get all ingredients by WHERE recipe_id = x
Also, if you want to share ingredients with any recipes. you should
use tree tables, like:
RecIngr('recipe_id', 'ingr_id', 'amount')
Then, you can get all recipe ingr