提交 94484549 authored 作者: Thomas Mueller's avatar Thomas Mueller

Trigger classes must be in the classpath.

上级 df0ecfc8
......@@ -1593,7 +1593,9 @@ This database supports Java triggers that are called before or after a row is up
Triggers can be used for complex consistency checks, or to update related data in the database.
It is also possible to use triggers to simulate materialized views.
For a complete sample application, see src/test/org/h2/samples/TriggerSample.java.
A Java trigger must implement the interface org.h2.api.Trigger:
A Java trigger must implement the interface org.h2.api.Trigger. The trigger class must be available
in the classpath of the database engine (when using the server mode, it must be in the classpath
of the server).
</p>
<pre>
import org.h2.api.Trigger;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论