Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 106895 Details for
Bug 240080
NPE when writing named queries to orm.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed patch - HEAD - org.eclipse.jpt.core
240080.txt (text/plain), 1.81 KB, created by
Karen Butzke
on 2008-07-08 18:52:31 EDT
(
hide
)
Description:
proposed patch - HEAD - org.eclipse.jpt.core
Filename:
MIME Type:
Creator:
Karen Butzke
Created:
2008-07-08 18:52:31 EDT
Size:
1.81 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jpt.core >Index: src/org/eclipse/jpt/core/internal/context/orm/GenericOrmEntity.java >=================================================================== >RCS file: /cvsroot/webtools/org.eclipse.jpa/components/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmEntity.java,v >retrieving revision 1.37 >diff -u -r1.37 GenericOrmEntity.java >--- src/org/eclipse/jpt/core/internal/context/orm/GenericOrmEntity.java 22 May 2008 13:59:18 -0000 1.37 >+++ src/org/eclipse/jpt/core/internal/context/orm/GenericOrmEntity.java 8 Jul 2008 22:51:23 -0000 >@@ -912,7 +912,9 @@ > public OrmNamedQuery addNamedQuery(int index) { > OrmNamedQuery namedQuery = getJpaFactory().buildOrmNamedQuery(this); > this.namedQueries.add(index, namedQuery); >- this.getTypeMappingResource().getNamedQueries().add(index, OrmFactory.eINSTANCE.createXmlNamedQuery()); >+ XmlNamedQuery xmlNamedQuery = OrmFactory.eINSTANCE.createXmlNamedQuery(); >+ namedQuery.initialize(xmlNamedQuery); >+ this.getTypeMappingResource().getNamedQueries().add(index, xmlNamedQuery); > this.fireItemAdded(QueryHolder.NAMED_QUERIES_LIST, index, namedQuery); > return namedQuery; > } >@@ -952,6 +954,8 @@ > public OrmNamedNativeQuery addNamedNativeQuery(int index) { > OrmNamedNativeQuery namedNativeQuery = getJpaFactory().buildOrmNamedNativeQuery(this); > this.namedNativeQueries.add(index, namedNativeQuery); >+ XmlNamedNativeQuery xmlNamedNativeQuery = OrmFactory.eINSTANCE.createXmlNamedNativeQuery(); >+ namedNativeQuery.initialize(xmlNamedNativeQuery); > this.getTypeMappingResource().getNamedNativeQueries().add(index, OrmFactory.eINSTANCE.createXmlNamedNativeQuery()); > this.fireItemAdded(QueryHolder.NAMED_NATIVE_QUERIES_LIST, index, namedNativeQuery); > return namedNativeQuery;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240080
: 106895