java - Operations on the DiscriminatorValue -


i want map 2 classes 1 table , use inheritance represent relationships.

e.g. class represents general task type id not equal 3 or 4. class b more specific task type id 3 or 4, code can seen this,

@entity @table(name = "task") @inheritance(strategy= inheritancetype.single_table) @discriminatorcolumn(name="task_type_id",discriminatortype= discriminatortype.integer) @discriminatorvalue(value="not 3 or 4") public class {     // properties }  @entity @table(name = "task") @inheritance(strategy= inheritancetype.single_table) @discriminatorcolumn(name="task_type_id",discriminatortype= discriminatortype.integer) @discriminatorvalue(value="3 or 4") public class b extends {     // properties } 

how handle discriminatorvalue part operations "not", "or"?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -