File tree Expand file tree Collapse file tree 10 files changed +133
-2
lines changed
node-plugin-rcra-outbound/src/main
java/com/windsor/node/plugin/rcra/outbound/domain
node-plugin-rcra/src/main
java/com/windsor/node/plugin/rcra/inbound/domain Expand file tree Collapse file tree 10 files changed +133
-2
lines changed Original file line number Diff line number Diff line change 22<jaxb : bindings version =" 2.1" xmlns : jaxb =" http://java.sun.com/xml/ns/jaxb" xmlns : xsd =" http://www.w3.org/2001/XMLSchema"
33 xmlns : hj =" http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
44 xmlns : orm =" http://java.sun.com/xml/ns/persistence/orm"
5+ xmlns : inheritance =" http://jaxb2-commons.dev.java.net/basic/inheritance"
56 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_Handler_v5.11.xsd" >
67
78 <jaxb : bindings node =" //xsd:complexType[@name='HandlerDataType']" >
9+ <inheritance : extends >com.windsor.node.plugin.rcra.outbound.domain.AbstractHandler</inheritance : extends >
810 <hj : entity >
911 <orm : table name =" RCRA_HD_HANDLER" />
1012 </hj : entity >
328330 <!-- -->
329331 <jaxb : bindings node =" //xsd:element[@ref='RC:HandlerEpisodicEvent']" >
330332 <hj : one-to-one >
333+ <orm : cascade />
331334 <orm : join-column name =" HD_HANDLER_ID" nullable =" false" updatable =" false" insertable =" true" />
332335 </hj : one-to-one >
333336 </jaxb : bindings >
334337
335338 <jaxb : bindings node =" //xsd:element[@ref='RC:HandlerLqgClosure']" >
336339 <hj : one-to-one >
340+ <orm : cascade />
337341 <orm : join-column name =" HD_HANDLER_ID" nullable =" false" updatable =" false" insertable =" true" />
338342 </hj : one-to-one >
339343 </jaxb : bindings >
Original file line number Diff line number Diff line change 55 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_HandlerLqgClosure_v5.11.xsd" >
66
77 <jaxb : bindings node =" //xsd:complexType[@name='HandlerLqgClosureDataType']" >
8+ <inheritance : extends >com.windsor.node.plugin.rcra.outbound.domain.AbstractOneToOneHandler</inheritance : extends >
89 <hj : entity >
910 <orm : table name =" RCRA_HD_LQG_CLOSURE" />
1011 </hj : entity >
Original file line number Diff line number Diff line change 55 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_HandlerEpisodicEvent_v5.11.xsd" >
66
77 <jaxb : bindings node =" //xsd:complexType[@name='HandlerEpisodicEventDataType']" >
8+ <inheritance : extends >com.windsor.node.plugin.rcra.outbound.domain.AbstractOneToOneHandler</inheritance : extends >
89 <hj : entity >
910 <orm : table name =" RCRA_HD_EPISODIC_EVENT" />
1011 </hj : entity >
Original file line number Diff line number Diff line change 1+ package com .windsor .node .plugin .rcra .outbound .domain ;
2+
3+ import javax .persistence .MappedSuperclass ;
4+ import javax .persistence .PrePersist ;
5+ import javax .persistence .PreUpdate ;
6+ import javax .persistence .Transient ;
7+
8+ @ MappedSuperclass
9+ public abstract class AbstractHandler {
10+
11+ private HazardousWasteEmanifestsDataType parent ;
12+
13+ @ Transient
14+ public abstract HandlerEpisodicEventDataType getHandlerEpisodicEvent ();
15+ @ Transient
16+ public abstract HandlerLqgClosureDataType getHandlerLqgClosure ();
17+
18+ public AbstractHandler () {
19+ super ();
20+ }
21+
22+ @ PrePersist
23+ @ PreUpdate
24+ public void handlePrePersist () {
25+ HandlerEpisodicEventDataType episodicEvent = getHandlerEpisodicEvent ();
26+ if (episodicEvent != null ) {
27+ episodicEvent .setHandler ((HandlerDataType ) this );
28+ }
29+ HandlerLqgClosureDataType lqgClosure = getHandlerLqgClosure ();
30+ if (lqgClosure != null ) {
31+ lqgClosure .setHandler ((HandlerDataType )this );
32+ }
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ package com .windsor .node .plugin .rcra .outbound .domain ;
2+
3+ import javax .persistence .JoinColumn ;
4+ import javax .persistence .ManyToOne ;
5+ import javax .persistence .MappedSuperclass ;
6+ import javax .xml .bind .annotation .XmlTransient ;
7+
8+ @ MappedSuperclass
9+ public abstract class AbstractOneToOneHandler {
10+
11+ @ XmlTransient
12+ private HandlerDataType handler ;
13+
14+ public AbstractOneToOneHandler () {
15+ super ();
16+ }
17+
18+ @ ManyToOne
19+ @ JoinColumn (name = "HD_HANDLER_ID" , nullable = false )
20+ public HandlerDataType getHandler () {
21+ return handler ;
22+ }
23+
24+ public void setHandler (HandlerDataType handler ) {
25+ this .handler = handler ;
26+ }
27+ }
Original file line number Diff line number Diff line change 22<jaxb : bindings version =" 2.1" xmlns : jaxb =" http://java.sun.com/xml/ns/jaxb" xmlns : xsd =" http://www.w3.org/2001/XMLSchema"
33 xmlns : hj =" http://hyperjaxb3.jvnet.org/ejb/schemas/customizations"
44 xmlns : orm =" http://java.sun.com/xml/ns/persistence/orm"
5+ xmlns : inheritance =" http://jaxb2-commons.dev.java.net/basic/inheritance"
56 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_Handler_v5.11.xsd" >
6-
7- < jaxb : bindings node = " //xsd:complexType[@name='HandlerDataType'] " >
7+ < jaxb : bindings node = " //xsd:complexType[@name='HandlerDataType'] " >
8+ < inheritance : extends >com.windsor. node.plugin.rcra.inbound.domain.AbstractHandler</ inheritance : extends >
89 <hj : entity >
910 <orm : table name =" RCRA_HD_HANDLER" />
1011 </hj : entity >
Original file line number Diff line number Diff line change 55 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_HandlerLqgClosure_v5.11.xsd" >
66
77 <jaxb : bindings node =" //xsd:complexType[@name='HandlerLqgClosureDataType']" >
8+ <inheritance : extends >com.windsor.node.plugin.rcra.inbound.domain.AbstractOneToOneHandler</inheritance : extends >
89 <hj : entity >
910 <orm : table name =" RCRA_HD_LQG_CLOSURE" />
1011 </hj : entity >
Original file line number Diff line number Diff line change 55 jaxb : extensionBindingPrefixes =" hj orm inheritance" schemaLocation =" ../xsd/5/11/RCRA_HandlerEpisodicEvent_v5.11.xsd" >
66
77 <jaxb : bindings node =" //xsd:complexType[@name='HandlerEpisodicEventDataType']" >
8+ <inheritance : extends >com.windsor.node.plugin.rcra.inbound.domain.AbstractOneToOneHandler</inheritance : extends >
89 <hj : entity >
910 <orm : table name =" RCRA_HD_EPISODIC_EVENT" />
1011 </hj : entity >
Original file line number Diff line number Diff line change 1+ package com .windsor .node .plugin .rcra .inbound .domain ;
2+
3+ import javax .persistence .MappedSuperclass ;
4+ import javax .persistence .PrePersist ;
5+ import javax .persistence .PreUpdate ;
6+ import javax .persistence .Transient ;
7+
8+ @ MappedSuperclass
9+ public abstract class AbstractHandler {
10+
11+ private HazardousWasteEmanifestsDataType parent ;
12+
13+ @ Transient
14+ public abstract HandlerEpisodicEventDataType getHandlerEpisodicEvent ();
15+ @ Transient
16+ public abstract HandlerLqgClosureDataType getHandlerLqgClosure ();
17+
18+ public AbstractHandler () {
19+ super ();
20+ }
21+
22+ @ PrePersist
23+ @ PreUpdate
24+ public void handlePrePersist () {
25+ HandlerEpisodicEventDataType episodicEvent = getHandlerEpisodicEvent ();
26+ if (episodicEvent != null ) {
27+ episodicEvent .setHandler ((HandlerDataType ) this );
28+ }
29+ HandlerLqgClosureDataType lqgClosure = getHandlerLqgClosure ();
30+ if (lqgClosure != null ) {
31+ lqgClosure .setHandler ((HandlerDataType )this );
32+ }
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ package com .windsor .node .plugin .rcra .inbound .domain ;
2+
3+ import javax .persistence .JoinColumn ;
4+ import javax .persistence .ManyToOne ;
5+ import javax .persistence .MappedSuperclass ;
6+ import javax .xml .bind .annotation .XmlTransient ;
7+
8+ @ MappedSuperclass
9+ public abstract class AbstractOneToOneHandler {
10+
11+ @ XmlTransient
12+ private HandlerDataType handler ;
13+
14+ public AbstractOneToOneHandler () {
15+ super ();
16+ }
17+
18+ @ ManyToOne
19+ @ JoinColumn (name = "HD_HANDLER_ID" , nullable = false )
20+ public HandlerDataType getHandler () {
21+ return handler ;
22+ }
23+
24+ public void setHandler (HandlerDataType handler ) {
25+ this .handler = handler ;
26+ }
27+ }
You can’t perform that action at this time.
0 commit comments