Hi!!
Dtabase columns that are not part of the used implementation (not mapped by
properties in the class) are not exposed in the SQL statement to the database -
which is exactly what I want (the database shall set this value, not the sql
statement).
Regards
Oskar
View the original post :
h
I don't see how that soved your problem.
Regards
Felix
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036899#4036899
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036899
__
Hi!!
No It is not exactly what I want. I solved everything by using inheritance and
the SINGE_TABLE inheritance method. Then I could skip my property I didn't want
to include.
But originally, I have a database specifying the default value. This value is
used by other applications too. So to ce
Not sure if this is what you want: You can simply set a default value on the
java side, either in the constructor or using the factory pattern.
As far as I know there is no JPA way to set a default value.
Regards
Felix
View the original post :
http://www.jboss.com/index.html?module=bb&op=vie
"oskar.carlstedt" wrote : I have the same problem. Did you find any
answer/solution for this?
|
| Kind regards
| Oskar
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036645#4036645
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=
I have the same problem. Did you find any answer/solution for this?
Kind regards
Oskar
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036640#4036640
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036640
__