Hi all,
Has anyone ever experienced this?
I used to hardcode the schema name in my entity beans, but now I use a static
import of the schema name
(thinking that this would make it easy to switch between a live version and a
debug version of the database-model)
But when I set DB_SCHEMA_REQFORM from its original value "reqform" to
"reqform_debug" and redeploy the project, the sequences are still created in
"reqform". Why is that, I wonder?
import static be.barc.reqform.server.system.DB.DB_SCHEMA_REQFORM;
|
| @Entity(access = AccessType.FIELD)
| @Table(name = "c_layout_fonts",
| schema = DB_SCHEMA_REQFORM
| )
| @SequenceGenerator(name = "LayoutFontBeanSequence", sequenceName =
"s_layout_fonts")
| public class LayoutFontBean implements Serializable {
|
| @Id(generate = GeneratorType.SEQUENCE, generator =
"LayoutFontBeanSequence")
| private long id;
|
| ...
|
| }
cheers
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939270#3939270
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939270
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user