[hibernate-dev] Hibernate ignores 'schema' attribute of @SequenceGenerator for Oracle sequences

Steve Ebersole steve at hibernate.org
Sun Aug 12 13:15:43 EDT 2012


Not following what you mean "'use new id generator mappings' is false all
the time".
On Aug 12, 2012 3:40 AM, "mutaz kabbashi" <mutazhkabbashi at gmail.com> wrote:

> hi all
>
>     i am new here and  i  want  to contribute to hibernate so i
> started with simple bug (Hibernate ignores 'schema' attribute of
> @SequenceGenerator for Oracle sequences HHH-7232)
> (https://hibernate.onjira.com/browse/HHH-7232) , after i checked the
> code i found out  that when hibenate try to parse @SequenceGenerator
> annotation of Entity class it checks (USE_NEW_ID_GENERATOR_MAPPINGS )
> constatnt @[org.hibernate.cfg.AvailableSettings.java] which will be
> false  all the time so hibernate will not read the sequence schema .
>   so what is the best way to solve this problem
>
>
>
>   - Change USE_NEW_ID_GENERATOR_MAPPINGS value (could make problem
> with backward compatibility)
>
>  - create new constant
>
> - check @sequenceGenerator and get schema name  (if schema is present
> get schema name else schema name will be null )
>
> - any suggestion
>
> thank you
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list