[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] HistoryPolicy question
|
Hi, thanks for the reply.
I'm trying to configure both. I check the svn and I didn't found any
reference to history table creation, so assume that is not available :)
I use the HistoryFacade example to learn how to define the policy.
Now, the HistoryFacade class defines the method
generateHistoricalTableDefinitions(TableCreator creator,
org.eclipse.persistence.sessions.Session session) but I don't have the
TableCreator inside a SessionCustomizer (all the examples defines the
TableCreator in a java fashion). Using DefaultTableGenerator inside the
SessionCustomizer causes a NPE, so I created the schema with scripts.
James Sutherland wrote:
>
> There is a history example here:
>
> http://wiki.eclipse.org/EclipseLink/Examples/JPA/History
>
> Are you trying to configure the history policy, or trying to create the
> tables?
>
> The default schema generation does not generate the history tables (please
> log a bug for this and vote for it). If you are looking for a way to
> automatically generate them you could use a SessionCustomizer, there is
> also a class in EclipseLink SVN in testing,
> org.eclipse.persistence.tools.history.HistoryFacade that can auto generate
> history tables. Or you can use your own schema scripts.
>
>
>
> aledbf wrote:
>>
>> Hi, I can't find an example of HistoryPolicy whithout a manual
>> TableCreator (from java).
>> It's posible to use (configure) HistoryPolicy from a SessionCustomizer?
>> Thanks in advance.
>>
>>
>
>
--
View this message in context: http://old.nabble.com/HistoryPolicy-question-tp29446061p29523064.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.