|Re: SequenceGenerator and schema [message #517536 is a reply to message #516501]
||Mon, 01 March 2010 08:48
Registered: July 2009
any help about my issue?
Simple I would like to get the schema name for Sequence from orm.xml!
Is it possible?
Otherwise, I think the best solution is to convert my SequenceGenerator
into TableGenerator, in order to have the table in the Schema name
specified on the orm.xml file!
So, for example:
Enrico ha scritto:
> HI Doug,
> thank you for your reply.
> I tried but a compile error occuour:
> "The attribute schema is undefined for the annotation type
> I am using Java Persistence 1.0.
> Anyway, I would like also to know if it is possible to set the schema
> name only in one point and not on all entity class. In particular I
> would like to get the schema name always from the orm.xml file.
> Because if I set the schema name in the entity class I need every time
> to recompile the class if I need to use the same class for another
> project (e.g. two context that use same classes and same DB but on
> different schema names). I now I can configure any entity on xml file
> but I would like to now if I can get the shema names also for sequences
> from the orm.xml file.
> Doug Clarke ha scritto:
>> Have you set the schema attribute in the @SequenceGenerator?
>> @SequenceGenerator(name="ADDRESS_SEQ", schema="SCHEMA1",
Powered by FUDForum
. Page generated in 0.09792 seconds