Bug 1035400

Summary: GadgetServer - Oracle keyword clash when database schema generated.
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Steve Johnson <stejohns>
Component: RT GovernanceAssignee: Steve Johnson <stejohns>
Status: CLOSED CURRENTRELEASE QA Contact: Andrej Vano <avano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, soa-p-jira
Target Milestone: ER7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Steve Johnson 2013-11-27 16:34:18 UTC
Description of problem:

The generated schema for GadgetServer produces a column name that clashes with an Oracle keyword.

Attribute "user" in Class Page. See ./gadget-core/src/main/java/org/overlord/gadgets/server/model/Page.java

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Steve Johnson 2013-11-27 16:38:44 UTC
Fix is to add following annotation to attribute.

@JoinColumn(name="PAGE_USER")

I have created a patch for this in build, to be pushed back to community at a suitable time.

Comment 3 Andrej Vano 2013-12-17 15:16:51 UTC
Hi,

verified on ER7-2