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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -