JBoss Tools SVN: r2696 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view: views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-07-27 07:42:48 -0400 (Fri, 27 Jul 2007)
New Revision: 2696
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java
Log:
http://jira.jboss.org/jira/browse/EXIN-225 Added log of some exceptions
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2007-07-27 09:41:56 UTC (rev 2695)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2007-07-27 11:42:48 UTC (rev 2696)
@@ -26,15 +26,13 @@
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.jboss.tools.common.log.BaseUIPlugin;
import org.osgi.framework.BundleContext;
-
-
/**
* The main plugin class to be used in the desktop.
*/
-public class ViewPlugin extends AbstractUIPlugin {
+public class ViewPlugin extends BaseUIPlugin {
//The shared instance.
private static ViewPlugin plugin;
//Resource bundle.
@@ -165,9 +163,8 @@
try {
properties.load(bain);
} catch (IOException e) {
-// ExceptionHandler.logThrowableError(e, null);
+ getDefault().logError("Can't load preference store propertyes", e);
}
}
}
-
-}
+}
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java 2007-07-27 09:41:56 UTC (rev 2695)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java 2007-07-27 11:42:48 UTC (rev 2696)
@@ -41,11 +41,10 @@
try {
IDE.openEditor(ViewPlugin.getPage(),input ,"org.jboss.tools.hibernate.ui.veditor.editors.visualeditor");
} catch (PartInitException e) {
-// ExceptionHandler.logThrowableError(e,"OpenEditor");
+ ViewPlugin.getDefault().logError("Can't open mapping view.", e);
}
}
public void selectionChanged(IAction action, ISelection selection) {
}
-
-}
+}
\ No newline at end of file
17 years, 5 months
JBoss Tools SVN: r2695 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors: parts and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-07-27 05:41:56 -0400 (Fri, 27 Jul 2007)
New Revision: 2695
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java
Log:
http://jira.jboss.com/jira/browse/EXIN-365
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java 2007-07-26 22:52:48 UTC (rev 2694)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/ModelElement.java 2007-07-27 09:41:56 UTC (rev 2695)
@@ -56,8 +56,8 @@
public OrmDiagram getOrmDiagram(){
ModelElement element = this;
while(true){
+ if(element instanceof OrmDiagram) return (OrmDiagram)element;
if(element.getParent() == null)break;
- if(element.getParent() instanceof OrmDiagram) return (OrmDiagram)element.getParent();
element = element.getParent();
}
return null;
@@ -66,6 +66,7 @@
public ExpandeableShape getExtendeableShape(){
ModelElement element = this;
while(true){
+ if(element instanceof ExpandeableShape) return (ExpandeableShape)element;
if(element.getParent() == null)break;
if(element.getParent() instanceof ExpandeableShape) return (ExpandeableShape)element.getParent();
element = element.getParent();
@@ -76,8 +77,8 @@
public OrmShape getOrmShape(){
ModelElement element = this;
while(true){
+ if(element instanceof OrmShape) return (OrmShape)element;
if(element.getParent() == null)break;
- if(element.getParent() instanceof OrmShape) return (OrmShape)element.getParent();
element = element.getParent();
}
return null;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-26 22:52:48 UTC (rev 2694)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-07-27 09:41:56 UTC (rev 2695)
@@ -28,6 +28,7 @@
import org.jboss.tools.hibernate.ui.veditor.editors.figures.TitleLabel;
import org.jboss.tools.hibernate.ui.veditor.editors.figures.TopLineBorder;
import org.jboss.tools.hibernate.ui.veditor.editors.model.ComponentShape;
+import org.jboss.tools.hibernate.ui.veditor.editors.model.Connection;
import org.jboss.tools.hibernate.ui.veditor.editors.model.ExpandeableShape;
import org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.ui.veditor.editors.model.OrmShape;
@@ -70,8 +71,9 @@
((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(0,0,0)));
}
}else if (ExpandeableShape.SHOW_REFERENCES.equals(prop)) {
- referenceList.add((OrmShape)getCastedModel().getParent());
- refreshReference((ExpandeableShape)getCastedModel(), ((ExpandeableShape)getCastedModel()).isReferenceVisible());
+ //referenceList.add((OrmShape)getCastedModel().getParent());
+ //refreshReference((ExpandeableShape)getCastedModel(), ((ExpandeableShape)getCastedModel()).isReferenceVisible());
+ refreshReferences((Shape)getCastedModel(), ((ExpandeableShape)getCastedModel()).isReferenceVisible());
((TitleLabel)getFigure()).setHidden(!((ExpandeableShape)getCastedModel()).isReferenceVisible());
// ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getSelectionColor());
// ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(255,255,255)));
@@ -116,6 +118,39 @@
shape.getOrmDiagram().update();
}
+ protected void refreshReferences(Shape shape, boolean visible){
+ Connection link;
+ OrmShape refShape;
+
+ OrmEditPart shapePart = (OrmEditPart)getViewer().getEditPartRegistry().get(shape);
+
+ for(int i=0;i<shape.getSourceConnections().size();i++){
+ link = (Connection)shape.getSourceConnections().get(i);
+ refShape = (OrmShape)link.getTarget().getOrmShape();
+ if(refShape == null) continue;
+ if(!isReferencesCorrect(refShape)) continue;
+
+ OrmEditPart refPart = (OrmEditPart)getViewer().getEditPartRegistry().get(refShape);
+ if(refPart != null){
+ if(isShapeCanBeInvisible(shapePart, refPart, visible)){
+ refPart.getFigure().setVisible(visible);
+ setLinksVisible(refPart, visible);
+ }
+ }
+ referenceList.add(shape.getOrmShape());
+ refreshReferences(refShape, visible);
+ referenceList.remove(shape.getOrmShape());
+ }
+
+ referenceList.add(shape.getOrmShape());
+
+ for(int i=0;i<shape.getChildren().size();i++){
+ refreshReferences((Shape)shape.getChildren().get(i), visible);
+ }
+ referenceList.remove(shape.getOrmShape());
+ shape.getOrmDiagram().update();
+ }
+
private boolean isTableCanBeInvisible(OrmEditPart tablePart, boolean visible){
if(visible) return true;
ConnectionEditPart link;
@@ -126,6 +161,16 @@
return true;
}
+ private boolean isShapeCanBeInvisible(OrmEditPart source, OrmEditPart target, boolean visible){
+ if(visible) return true;
+ ConnectionEditPart link;
+ for(int i=0;i<target.getTargetConnections().size();i++){
+ link = (ConnectionEditPart)target.getTargetConnections().get(i);
+ if(link.getFigure().isVisible() && link.getSource() != source) return false;
+ }
+ return true;
+ }
+
private boolean isReferencesCorrect(OrmShape shape){
if(shape == null) return false;
for(int i=0;i < referenceList.size();i++){
17 years, 5 months
JBoss Tools SVN: r2694 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model: internal/xb and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-07-26 18:52:48 -0400 (Thu, 26 Jul 2007)
New Revision: 2694
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java
Log:
removed two-step file output, replaced with one
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2007-07-26 20:24:23 UTC (rev 2693)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2007-07-26 22:52:48 UTC (rev 2694)
@@ -300,7 +300,7 @@
IPath packagesFile = project.append(ArchivesModel.PROJECT_PACKAGES_FILE);
XbPackages packs = getXbPackages(project);
- XMLBinding.savePackagesToFile(packs, packagesFile, monitor);
+ XMLBinding.marshallToFile(packs, packagesFile, monitor);
// get deltas
try {
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java 2007-07-26 20:24:23 UTC (rev 2693)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java 2007-07-26 22:52:48 UTC (rev 2694)
@@ -37,6 +37,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.Trace;
import org.jboss.ide.eclipse.archives.core.model.IArchive;
@@ -127,6 +128,21 @@
}
return null;
}
+
+ public static void marshallToFile(XbPackages element, IPath filePath, IProgressMonitor monitor) {
+ OutputStreamWriter writer = null;
+ try {
+ writer = new OutputStreamWriter(new FileOutputStream(filePath.toFile()));
+ XMLBinding.marshall(element, writer, new NullProgressMonitor());
+ } catch( Exception e ) {
+ }
+ finally {
+ try {
+ if( writer != null ) writer.close();
+ } catch( IOException ioe) {}
+ }
+ }
+
public static void marshall (final XbPackages element, final Writer writer, final IProgressMonitor monitor)
{
if( !initialized) init();
@@ -157,30 +173,6 @@
});
}
-
- public static void savePackagesToFile(XbPackages packages, IPath outputFile, IProgressMonitor monitor) {
- try {
- ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
- OutputStreamWriter writer = new OutputStreamWriter(bytesOut);
- XMLBinding.marshall(packages, writer, monitor);
- writer.close();
-
- ByteArrayInputStream bytesIn = new ByteArrayInputStream(bytesOut.toByteArray());
- OutputStream out = new FileOutputStream(outputFile.toFile());
-
- // Transfer bytes from in to out
- byte[] buf = new byte[1024];
- int len;
- while ((len = bytesIn.read(buf)) > 0) {
- out.write(buf, 0, len);
- }
- out.close();
- bytesIn.close();
- bytesOut.close();
- } catch( IOException ioe ) {
- }
- }
-
public static String serializePackages(XbPackages packages, IProgressMonitor monitor) {
try {
ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
17 years, 5 months
JBoss Tools SVN: r2693 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-07-26 16:24:23 -0400 (Thu, 26 Jul 2007)
New Revision: 2693
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/TrueZipUtil.java
Log:
createArchive did not create an archive unless a proper extension was found.
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/TrueZipUtil.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/TrueZipUtil.java 2007-07-26 18:59:10 UTC (rev 2692)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/TrueZipUtil.java 2007-07-26 20:24:23 UTC (rev 2693)
@@ -21,13 +21,15 @@
*/
package org.jboss.ide.eclipse.archives.core.util.internal;
-import java.io.FileNotFoundException;
import java.io.IOException;
import org.eclipse.core.runtime.IPath;
+import de.schlichtherle.io.AbstractArchiveDetector;
import de.schlichtherle.io.ArchiveDetector;
import de.schlichtherle.io.ArchiveException;
+import de.schlichtherle.io.archive.spi.ArchiveDriver;
+import de.schlichtherle.io.archive.zip.Zip32Driver;
/**
* Accesses raw files with the truezip filesystem
@@ -65,29 +67,7 @@
}
public static void copyFile(String source, de.schlichtherle.io.File file) {
- try {
- // make parent folders
- if( !file.getParentFile().exists() )
- file.getParentFile().mkdirs();
-
- de.schlichtherle.io.FileOutputStream fos = new de.schlichtherle.io.FileOutputStream(file);
- java.io.FileInputStream fis = new java.io.FileInputStream(source);
-
- byte[] buf = new byte[1024];
- int i = 0;
- while((i=fis.read(buf))!=-1) {
- fos.write(buf, 0, i);
- }
- fis.close();
- fos.close();
- } catch (FileNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
+ new de.schlichtherle.io.File(source).copyAllTo(file);
updateParentTimestamps(file);
}
@@ -128,18 +108,18 @@
public static void createFolder(IPath parent, String folderName) {
- createFolder(parent.append(folderName));
+ new de.schlichtherle.io.File(getFile(parent, ArchiveDetector.DEFAULT), folderName, ArchiveDetector.NULL).mkdirs();
+ updateParentTimestamps(parent.append(folderName));
}
public static void createFolder(IPath path) {
- getFile(path, ArchiveDetector.NULL).mkdirs();
- updateParentTimestamps(path);
+ createFolder(path.removeLastSegments(1), path.lastSegment());
}
public static void createArchive(IPath parent, String folderName) {
- createArchive(parent.append(folderName));
+ new de.schlichtherle.io.File(getFile(parent, ArchiveDetector.DEFAULT), folderName, getJarArchiveDetector()).mkdirs();
+ updateParentTimestamps(parent.append(folderName));
}
public static void createArchive(IPath path) {
- getFile(path).mkdirs();
- updateParentTimestamps(path);
+ createArchive(path.removeLastSegments(1), path.lastSegment());
}
public static void umount() {
try {
@@ -174,6 +154,21 @@
parent.setLastModified(time);
parent = parent.getEnclArchive();
}
-
}
+
+
+ private static ArchiveDetector JAR_ARCHIVE_DETECTOR;
+ public static ArchiveDetector getJarArchiveDetector() {
+ if( JAR_ARCHIVE_DETECTOR == null ) {
+ JAR_ARCHIVE_DETECTOR = new JarArchiveDetector();
+ }
+ return JAR_ARCHIVE_DETECTOR;
+ }
+
+ public static class JarArchiveDetector extends AbstractArchiveDetector {
+ public ArchiveDriver getArchiveDriver(String arg0) {
+ return new Zip32Driver();
+ }
+
+ }
}
17 years, 5 months
JBoss Tools SVN: r2692 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-07-26 14:59:10 -0400 (Thu, 26 Jul 2007)
New Revision: 2692
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebUtils.java
Log:
fix the build problem
seam gen initialization and dependency are removed. to get the build back to normal
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2007-07-26 16:58:00 UTC (rev 2691)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2007-07-26 18:59:10 UTC (rev 2692)
@@ -63,7 +63,6 @@
org.eclipse.pde.ui,
org.eclipse.core.runtime,
org.eclipse.ant.ui,
- org.eclipse.ui.externaltools,
- org.jboss.ide.seam.gen
+ org.eclipse.ui.externaltools
Bundle-Version: 2.0.0
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2007-07-26 16:58:00 UTC (rev 2691)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2007-07-26 18:59:10 UTC (rev 2692)
@@ -35,7 +35,6 @@
import org.eclipse.wst.server.core.ServerCore;
import org.eclipse.wst.server.core.ServerUtil;
import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
-import org.jboss.ide.seam.gen.actions.SeamGenAction;
import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.common.model.XModel;
@@ -48,8 +47,6 @@
public class WebModelPlugin extends BaseUIPlugin {
public static final String JBOSS_AS_HOME = "../../../../jbossas"; // JBoss AS home directory (relative to plugin)- <RHDS_HOME>/jbossas.
- // TODO agreement about actual seam-gen location is needed
- public static final String SEAM_GEN_HOME = "../../../../jbosseam/seam-gen";
public static final String JBOSS_AS_RUNTIME_TYPE_ID = "org.jboss.ide.eclipse.as.runtime.42";
public static final String JBOSS_AS_TYPE_ID = "org.jboss.ide.eclipse.as.42";
@@ -109,39 +106,12 @@
// when calling of these dialogs is cause of loadind the plugin hierarchy
ProjectTemplatesPlugin.getDefault();
initJbossAS();
- initSeamGen();
}
- private void initSeamGen() {
- ILaunchConfiguration config=null;
- try {
- config = findLaunchConfig("seamgen");
- } catch (CoreException e1) {
- getPluginLog().logError("Exception occured during search in Launch Configuration list.", e1);
- }
- String buildXmlPath = null;
- if(config==null) {
- try {
- buildXmlPath = getSeamGenBuildPath();
- SeamGenAction.createSeamgenLaunchConfig(buildXmlPath);
- } catch (CoreException e) {
- getPluginLog().logError("Cannot create configuration for Seam-Gen tool. Seamgen build.xml file: " + buildXmlPath, e);
- return;
- }
- }
- }
- public String getSeamGenBuildPath() {
- String pluginLocation = EclipseResourceUtil.getInstallPath(this.getBundle());
- File seamGenDir = new File(pluginLocation, SEAM_GEN_HOME);
- File seamGenBuildXml = new File(seamGenDir,"build.xml");
- if(seamGenBuildXml.isFile()) {
- return seamGenBuildXml.getAbsolutePath();
- } else {
- return "";
- }
- }
+
+
static public ILaunchConfiguration findLaunchConfig(String name) throws CoreException {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( "org.eclipse.ant.AntLaunchConfigurationType" );
@@ -226,7 +196,7 @@
server.setName(JBOSS_AS_NAME);
server.save(false, progressMonitor);
}
- } catch (Exception e) {
+ } catch (CoreException e) {
getPluginLog().logError("Can't create new JBoss Server.", e);
}
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebUtils.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebUtils.java 2007-07-26 16:58:00 UTC (rev 2691)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebUtils.java 2007-07-26 18:59:10 UTC (rev 2692)
@@ -51,8 +51,8 @@
String path = null;
try {
path = fs[i].getCanonicalPath();
- } catch (Exception e) {
- //ignore
+ } catch (IOException e) {
+ WebModelPlugin.getPluginLog().logError(e);
}
if(path != null) jars.add(path);
}
@@ -88,7 +88,7 @@
if(path.startsWith(classPathVarValue)) {
path = classPathVarName + path.substring(classPathVarValue.length());
}
- } catch (Exception e) {
+ } catch (IOException e) {
WebModelPlugin.getPluginLog().logError(e);
}
if(path != null) jars.add(path);
17 years, 5 months
JBoss Tools SVN: r2691 - in trunk/seam/plugins/org.jboss.tools.seam.xml: META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 12:58:00 -0400 (Thu, 26 Jul 2007)
New Revision: 2691
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/components-1.1.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-1.2.xsd
Removed:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.1.dtd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/core-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/drools-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/framework-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jms-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/mail-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/pdf-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/remoting-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/security-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/spring-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/theme-1.2.xsd
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/web-1.2.xsd
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
Log:
EXIN-86 seam component xsd's and dtd registered in wst
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2007-07-26 16:58:00 UTC (rev 2691)
@@ -22,6 +22,7 @@
org.eclipse.wst.sse.core,
org.eclipse.ltk.core.refactoring,
org.eclipse.ltk.ui.refactoring,
+ org.eclipse.wst.xml.core,
org.eclipse.core.resources,
org.eclipse.core.runtime,
org.eclipse.wst.web
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/components-1.1.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/components-1.1.dtd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/dtds/components-1.1.dtd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,40 @@
+<!--
+
+<!DOCTYPE components PUBLIC
+ "-//JBoss/Seam Component Configuration DTD 1.1//EN"
+ "http://jboss.com/products/seam/components-1.1.dtd">
+
+-->
+
+<!ELEMENT components (component|factory|event)*>
+
+<!ELEMENT component (property*)>
+<!ATTLIST component name CDATA #IMPLIED>
+<!ATTLIST component class CDATA #IMPLIED>
+<!ATTLIST component scope (stateless|event|page|conversation|session|business_process|application|STATELESS|EVENT|PAGE|CONVERSATION|SESSION|BUSINESS_PROCESS|APPLICATION) #IMPLIED>
+<!ATTLIST component jndi-name CDATA #IMPLIED>
+<!ATTLIST component installed CDATA #IMPLIED>
+<!ATTLIST component precedence CDATA #IMPLIED>
+<!ATTLIST component auto-create (true|false) "false">
+
+<!ELEMENT factory EMPTY>
+<!ATTLIST factory name CDATA #REQUIRED>
+<!ATTLIST factory method CDATA #IMPLIED>
+<!ATTLIST factory value CDATA #IMPLIED>
+<!ATTLIST factory scope (stateless|event|page|conversation|session|business_process|application|STATELESS|EVENT|PAGE|CONVERSATION|SESSION|BUSINESS_PROCESS|APPLICATION) #IMPLIED>
+<!ATTLIST factory auto-create (true|false) "false">
+
+<!ELEMENT property (#PCDATA|key|value)*>
+<!ATTLIST property name CDATA #REQUIRED>
+
+<!ELEMENT key (#PCDATA)>
+<!ELEMENT value (#PCDATA)>
+
+<!-- event handling -->
+
+<!ELEMENT event (action*)>
+<!ATTLIST event type CDATA #REQUIRED>
+
+<!ELEMENT action EMPTY>
+<!ATTLIST action expression CDATA #REQUIRED>
+
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-07-26 16:58:00 UTC (rev 2691)
@@ -39,4 +39,96 @@
class="org.jboss.tools.seam.xml.components.model.SeamComponentsEntityRecognizer"/>
</extension>
+ <extension point="org.eclipse.wst.xml.core.catalogContributions">
+ <catalogContribution id="default">
+ <uri
+ name="http://jboss.com/products/seam/components"
+ uri="schemas/components-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/components"
+ uri="schemas/components-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/core"
+ uri="schemas/core-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/core"
+ uri="schemas/core-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/drools"
+ uri="schemas/drools-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/drools"
+ uri="schemas/drools-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/framework"
+ uri="schemas/framework-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/framework"
+ uri="schemas/framework-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/jms"
+ uri="schemas/jms-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/jms"
+ uri="schemas/jms-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/mail"
+ uri="schemas/mail-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/mail"
+ uri="schemas/mail-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/pdf"
+ uri="schemas/pdf-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/pdf"
+ uri="schemas/pdf-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/remoting"
+ uri="schemas/remoting-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/remoting"
+ uri="schemas/remoting-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/security"
+ uri="schemas/security-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/security"
+ uri="schemas/security-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/spring"
+ uri="schemas/spring-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/spring"
+ uri="schemas/spring-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/theme"
+ uri="schemas/theme-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/theme"
+ uri="schemas/theme-1.2.xsd"/>
+
+ <uri
+ name="http://jboss.com/products/seam/web"
+ uri="schemas/web-1.2.xsd"/>
+ <public
+ publicId="http://jboss.com/products/seam/web"
+ uri="schemas/web-1.2.xsd"/>
+
+ <public
+ publicId="-//JBoss/Seam Component Configuration DTD 1.1//EN"
+ uri="dtds/components-1.1.dtd"/>
+
+ </catalogContribution>
+ </extension>
</plugin>
\ No newline at end of file
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.1.dtd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.1.dtd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.1.dtd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,40 +0,0 @@
-<!--
-
-<!DOCTYPE components PUBLIC
- "-//JBoss/Seam Component Configuration DTD 1.1//EN"
- "http://jboss.com/products/seam/components-1.1.dtd">
-
--->
-
-<!ELEMENT components (component|factory|event)*>
-
-<!ELEMENT component (property*)>
-<!ATTLIST component name CDATA #IMPLIED>
-<!ATTLIST component class CDATA #IMPLIED>
-<!ATTLIST component scope (stateless|event|page|conversation|session|business_process|application|STATELESS|EVENT|PAGE|CONVERSATION|SESSION|BUSINESS_PROCESS|APPLICATION) #IMPLIED>
-<!ATTLIST component jndi-name CDATA #IMPLIED>
-<!ATTLIST component installed CDATA #IMPLIED>
-<!ATTLIST component precedence CDATA #IMPLIED>
-<!ATTLIST component auto-create (true|false) "false">
-
-<!ELEMENT factory EMPTY>
-<!ATTLIST factory name CDATA #REQUIRED>
-<!ATTLIST factory method CDATA #IMPLIED>
-<!ATTLIST factory value CDATA #IMPLIED>
-<!ATTLIST factory scope (stateless|event|page|conversation|session|business_process|application|STATELESS|EVENT|PAGE|CONVERSATION|SESSION|BUSINESS_PROCESS|APPLICATION) #IMPLIED>
-<!ATTLIST factory auto-create (true|false) "false">
-
-<!ELEMENT property (#PCDATA|key|value)*>
-<!ATTLIST property name CDATA #REQUIRED>
-
-<!ELEMENT key (#PCDATA)>
-<!ELEMENT value (#PCDATA)>
-
-<!-- event handling -->
-
-<!ELEMENT event (action*)>
-<!ATTLIST event type CDATA #REQUIRED>
-
-<!ELEMENT action EMPTY>
-<!ATTLIST action expression CDATA #REQUIRED>
-
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/components-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/components"
- xmlns:components="http://jboss.com/products/seam/components">
- <xs:element name="components">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="components:component"/>
- <xs:element ref="components:factory"/>
- <xs:element ref="components:event"/>
- <xs:any namespace="##other" processContents="strict"/>
- </xs:choice>
- </xs:complexType>
- </xs:element>
- <xs:element name="component">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="components:property"/>
- </xs:sequence>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
- </xs:complexType>
- </xs:element>
-
- <xs:attributeGroup name="attlist.ejbcomponent">
- <xs:attribute name="jndi-name"/>
- </xs:attributeGroup>
-
- <xs:attributeGroup name="attlist.component">
- <xs:attribute name="name"/>
- <xs:attribute name="class"/>
- <xs:attribute name="scope">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="stateless"/>
- <xs:enumeration value="event"/>
- <xs:enumeration value="page"/>
- <xs:enumeration value="conversation"/>
- <xs:enumeration value="session"/>
- <xs:enumeration value="business_process"/>
- <xs:enumeration value="application"/>
- <xs:enumeration value="STATELESS"/>
- <xs:enumeration value="EVENT"/>
- <xs:enumeration value="PAGE"/>
- <xs:enumeration value="CONVERSATION"/>
- <xs:enumeration value="SESSION"/>
- <xs:enumeration value="BUSINESS_PROCESS"/>
- <xs:enumeration value="APPLICATION"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
-
- <xs:attribute name="precedence"/>
- <xs:attribute name="installed" default="true"/>
- <xs:attribute name="auto-create" default="false">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
- <xs:element name="factory">
- <xs:complexType>
- <xs:attributeGroup ref="components:attlist.factory"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.factory">
- <xs:attribute name="name" use="required"/>
- <xs:attribute name="method"/>
- <xs:attribute name="value"/>
- <xs:attribute name="scope">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="stateless"/>
- <xs:enumeration value="event"/>
- <xs:enumeration value="page"/>
- <xs:enumeration value="conversation"/>
- <xs:enumeration value="session"/>
- <xs:enumeration value="business_process"/>
- <xs:enumeration value="application"/>
- <xs:enumeration value="STATELESS"/>
- <xs:enumeration value="EVENT"/>
- <xs:enumeration value="PAGE"/>
- <xs:enumeration value="CONVERSATION"/>
- <xs:enumeration value="SESSION"/>
- <xs:enumeration value="BUSINESS_PROCESS"/>
- <xs:enumeration value="APPLICATION"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="auto-create" default="false">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
- <xs:element name="property">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="components:key"/>
- <xs:element ref="components:value"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.property"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.property">
- <xs:attribute name="name" use="required"/>
- </xs:attributeGroup>
- <xs:element name="key" type="xs:string"/>
- <xs:element name="value" type="xs:string"/>
-
- <xs:complexType name="multiValuedProperty">
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="components:value"/>
- </xs:sequence>
- </xs:complexType>
-
- <xs:complexType name="mapProperty">
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="components:key"/>
- <xs:element ref="components:value"/>
- </xs:sequence>
- </xs:complexType>
-
- <xs:element name="event">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="components:action"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.event"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.event">
- <xs:attribute name="type" use="required"/>
- </xs:attributeGroup>
-
- <xs:element name="action">
- <xs:complexType>
- <xs:attributeGroup ref="components:attlist.action"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.action">
- <xs:attribute name="expression" use="required"/>
- </xs:attributeGroup>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/core-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/core-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/core-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,270 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/core" xmlns:core="http://jboss.com/products/seam/core"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="actor">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="core:id"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="core:group-actor-ids"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.actor"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="group-actor-ids" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.actor">
- <xs:attribute name="group-actor-ids"> </xs:attribute>
- </xs:attributeGroup>
-
- <xs:element name="dispatcher">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
- <xs:attributeGroup ref="core:attlist.dispatcher"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.dispatcher"> </xs:attributeGroup>
-
- <xs:element name="transactionListener">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
- <xs:attributeGroup ref="core:attlist.transactionListener"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.transactionListener"> </xs:attributeGroup>
-
- <xs:element name="ejb">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.ejb"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ejb"> </xs:attributeGroup>
-
- <xs:element name="init">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.init"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.init">
- <xs:attribute name="debug">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="jndi-pattern"/>
- <xs:attribute name="client-side-conversations">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
-
- <xs:attribute name="my-faces-lifecycle-bug">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="user-transaction-name"/>
- </xs:attributeGroup>
-
- <xs:element name="jbpm">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="core:process-definitions"/>
- <xs:element ref="core:pageflow-definitions"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.jbpm"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="process-definitions" type="components:multiValuedProperty"/>
- <xs:element name="pageflow-definitions" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.jbpm"> </xs:attributeGroup>
-
- <xs:element name="locale-selector">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.localeSelector"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.localeSelector">
- <xs:attribute name="locale-string"/>
- <xs:attribute name="cookie-enabled">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
-
- <xs:element name="manager">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.manager"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.manager">
- <xs:attribute name="concurrent-request-timeout" type="xs:integer"/>
- <xs:attribute name="conversation-timeout" type="xs:integer"/>
- <xs:attribute name="conversation-id-parameter"/>
- <xs:attribute name="parent-conversation-id-parameter"/>
- <xs:attribute name="conversation-is-long-running-parameter"/>
- </xs:attributeGroup>
-
- <xs:element name="microcontainer">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.microcontainer"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.microcontainer"> </xs:attributeGroup>
-
- <xs:element name="pages">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.pages"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.pages">
- <xs:attribute name="no-conversation-view-id"/>
- <xs:attribute name="login-view-id"/>
- <xs:attribute name="http-port" type="xs:integer"/>
- <xs:attribute name="https-port" type="xs:integer"/>
- </xs:attributeGroup>
-
- <xs:element name="pojo-cache">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.pojoCache"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.pojoCache">
- <xs:attribute name="cfg-resource-name"/>
- </xs:attributeGroup>
-
- <xs:element name="resource-bundle">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="core:bundle-names"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.resourceBundle"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="bundle-names" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.resourceBundle">
- <xs:attribute name="bundle-names"> </xs:attribute>
- </xs:attributeGroup>
-
- <xs:element name="time-zone-selector">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="core:attlist.timeZoneSelector"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.timeZoneSelector">
- <xs:attribute name="time-zone-id"/>
- <xs:attribute name="cookie-enabled">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
-
- <xs:element name="managed-persistence-context">
- <xs:complexType mixed="true">
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element ref="core:filters"/>
- </xs:sequence>
- <xs:attributeGroup ref="core:attlist.ManagedPersistenceContext"/>
- <xs:attributeGroup ref="components:attlist.component"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ManagedPersistenceContext">
- <xs:attribute name="entity-manager-factory"/>
- <xs:attribute name="persistence-unit-jndi-name"/>
- </xs:attributeGroup>
-
- <xs:element name="managed-hibernate-session">
- <xs:complexType mixed="true">
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element ref="core:filters"/>
- </xs:sequence>
- <xs:attributeGroup ref="core:attlist.ManagedHibernateSession"/>
- <xs:attributeGroup ref="components:attlist.component"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="filters" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.ManagedHibernateSession">
- <xs:attribute name="session-factory"/>
- <xs:attribute name="session-factory-jndi-name"/>
- </xs:attributeGroup>
-
- <xs:element name="hibernate-session-factory">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="mappingClasses" type="components:multiValuedProperty"/>
- <xs:element name="mappingFiles" type="components:multiValuedProperty"/>
- <xs:element name="mappingJars" type="components:multiValuedProperty"/>
- <xs:element name="mappingPackages" type="components:multiValuedProperty"/>
- <xs:element name="mappingResources" type="components:multiValuedProperty"/>
- <xs:element name="cfg-properties" type="components:mapProperty"/>
- </xs:choice>
- <xs:attributeGroup ref="core:attlist.HibernateSessionFactory"/>
- <xs:attributeGroup ref="components:attlist.component"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.HibernateSessionFactory">
- <xs:attribute name="cfg-resource-name"/>
- </xs:attributeGroup>
-
- <xs:element name="entity-manager-factory">
- <xs:complexType mixed="true">
- <xs:sequence minOccurs="0" maxOccurs="1">
- <xs:element name="persistence-unit-properties" type="components:mapProperty"/>
- </xs:sequence>
- <xs:attributeGroup ref="core:attlist.EntityManagerFactory"/>
- <xs:attributeGroup ref="components:attlist.component"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.EntityManagerFactory">
- <xs:attribute name="persistence-unit-name"/>
- </xs:attributeGroup>
-
- <xs:element name="filter">
- <xs:complexType mixed="true">
- <xs:sequence>
- <xs:element minOccurs="0" name="name" type="xs:string"/>
- <xs:element minOccurs="0" name="parameters" type="components:mapProperty"/>
- </xs:sequence>
- <xs:attributeGroup ref="core:attlist.filter"/>
- <xs:attributeGroup ref="components:attlist.component"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.filter">
- <xs:attribute name="enabled"/>
- </xs:attributeGroup>
-
- <xs:element name="id" type="xs:string"/>
- <xs:element name="name" type="xs:string"/>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/drools-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/drools-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/drools-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/drools" xmlns:drools="http://jboss.com/products/seam/drools"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="rule-base">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="drools:rule-files"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="drools:attlist.RuleBase"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="rule-files" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.RuleBase">
- <xs:attribute name="dsl-file" type="xs:string"/>
- <xs:attribute name="rule-files" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="managed-working-memory">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="drools:attlist.ManagedWorkingMemory"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ManagedWorkingMemory">
- <xs:attribute name="rule-base" type="xs:string"/>
- </xs:attributeGroup>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/framework-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/framework-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/framework-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/framework"
- xmlns:framework="http://jboss.com/products/seam/framework"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
-
- <xs:attributeGroup name="attlist.Home">
- <xs:attribute name="entity-class" type="xs:string"/>
- <xs:attribute name="new-instance" type="xs:string"/>
- <xs:attribute name="created-message" type="xs:string"/>
- <xs:attribute name="updated-message" type="xs:string"/>
- <xs:attribute name="deleted-message" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:attributeGroup name="attlist.Query">
- <xs:attribute name="ejbql" type="xs:string"/>
- <xs:attribute name="max-results" type="xs:integer"/>
- <xs:attribute name="order" type="xs:string"/>
- </xs:attributeGroup>
- <xs:element name="restrictions" type="components:multiValuedProperty"/>
- <xs:element name="hints" type="components:mapProperty"/>
-
- <xs:element name="ejbql" type="xs:string"/>
- <xs:element name="order" type="xs:string"/>
-
- <xs:element name="entity-query">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:ejbql"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:order"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:restrictions"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:hints"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="framework:attlist.Query"/>
- <xs:attributeGroup ref="framework:attlist.entityQuery"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.entityQuery">
- <xs:attribute name="entity-manager" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="hibernate-entity-query">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:ejbql"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:order"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:restrictions"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="framework:attlist.Query"/>
- <xs:attributeGroup ref="framework:attlist.HibernateEntityQuery"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.HibernateEntityQuery">
- <xs:attribute name="cacheable">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="cache-region" type="xs:string"/>
- <xs:attribute name="fetch-size" type="xs:integer"/>
- <xs:attribute name="session" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="created-message" type="xs:string"/>
- <xs:element name="updated-message" type="xs:string"/>
- <xs:element name="deleted-message" type="xs:string"/>
- <xs:element name="new-instance" type="xs:string"/>
-
- <xs:element name="entity-home">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="id" type="xs:string"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:created-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:updated-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:deleted-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:new-instance"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="framework:attlist.Home"/>
- <xs:attributeGroup ref="framework:attlist.EntityHome"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.EntityHome">
- <xs:attribute name="entity-manager" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="hibernate-entity-home">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="id" type="xs:string"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:created-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:updated-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:deleted-message"/>
- <xs:element minOccurs="0" maxOccurs="1" ref="framework:new-instance"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="framework:attlist.Home"/>
- <xs:attributeGroup ref="framework:attlist.HibernateEntityHome"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.HibernateEntityHome">
- <xs:attribute name="session" type="xs:string"/>
- </xs:attributeGroup>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jms-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jms-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jms-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/jms" xmlns:jms="http://jboss.com/products/seam/jms"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="topic-connection">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="jms:attlist.TopicConnection"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.TopicConnection">
- <xs:attribute name="topic-connection-factory-jndi-name" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="queue-connection">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="jms:attlist.QueueConnection"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.QueueConnection">
- <xs:attribute name="queue-connection-factory-jndi-name" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="managed-topic-publisher">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="jms:attlist.ManagedTopicPublisher"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ManagedTopicPublisher">
- <xs:attribute name="topic-jndi-name" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="managed-queue-sender">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="jms:attlist.ManagedQueueSender"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.ManagedQueueSender">
- <xs:attribute name="queue-jndi-name" type="xs:string"/>
- </xs:attributeGroup>
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/mail-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/mail-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/mail-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/mail"
- xmlns:mail="http://jboss.com/products/seam/mail"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="http://jboss.com/products/seam/components-1.2.xsd"/>
- <xs:attributeGroup name="attlist.mailSession">
- <xs:attribute name="username" type="xs:string"/>
- <xs:attribute name="password" type="xs:string"/>
- <xs:attribute name="host" type="xs:string"/>
- <xs:attribute name="port" type="xs:string"/>
- <xs:attribute name="debug" type="xs:string"/>
- <xs:attribute name="ssl" type="xs:boolean"/>
- <xs:attribute name="session-jndi-name" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="mail-session">
- <xs:complexType>
- <xs:attributeGroup ref="components:attlist.component" />
- <xs:attributeGroup ref="mail:attlist.mailSession" />
- </xs:complexType>
- </xs:element>
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/pdf-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/pdf-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/pdf-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/pdf"
- xmlns:pdf="http://jboss.com/products/seam/pdf"
- xmlns:components="http://jboss.com/products/seam/components"
- attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="document-store">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="pdf:attlist.docstore"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.docstore">
- <xs:attribute name="error-page" type="xs:string"/>
- <xs:attribute name="use-extensions" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:element name="key-store-config">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="pdf:attlist.UseExtensions"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.UseExtensions">
- <xs:attribute name="key-store" type="xs:string"/>
- <xs:attribute name="key-store-password" type="xs:string"/>
- <xs:attribute name="key-password" type="xs:string"/>
- <xs:attribute name="key-alias" type="xs:string"/>
- </xs:attributeGroup>
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/remoting-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/remoting-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/remoting-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/remoting" xmlns:remoting="http://jboss.com/products/seam/remoting"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="remoting-config">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="remoting:attlist.remotingConfig"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.remotingConfig">
- <xs:attribute name="poll-interval" />
- <xs:attribute name="poll-timeout" />
- <xs:attribute name="debug">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
- <!-- subscription registry -->
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/security-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/security-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/security-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/security" xmlns:security="http://jboss.com/products/seam/security"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="identity">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="security:attlist.identity"/>
- </xs:complexType>
- </xs:element>
- <xs:attributeGroup name="attlist.identity">
- <xs:attribute name="authenticate-method" />
- <xs:attribute name="remember-me" type="xs:boolean"/>
- <xs:attribute name="jaas-config-name" type="xs:string"/>
- <xs:attribute name="security-rules" type="xs:string"/>
- </xs:attributeGroup>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/spring-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/spring-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/spring-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/spring" xmlns:spring="http://jboss.com/products/seam/spring"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="http://jboss.com/products/seam/components-1.2.xsd"/>
-
- <xs:element name="context-loader">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="spring:config-locations"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attribute name="config-locations" type="xs:string" use="optional" default="/WEB-INF/applicationContext.xml">
- <xs:annotation>
- <xs:documentation>
- <![CDATA[
- A single application context config location.
- ]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:complexType>
- </xs:element>
- <xs:element name="config-locations" type="components:multiValuedProperty">
- <xs:annotation>
- <xs:documentation>
- <![CDATA[
- Allows you to specify many config-locations in nested value elements.
- ]]>
- </xs:documentation>
- </xs:annotation>
- </xs:element>
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/theme-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/theme-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/theme-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/theme" xmlns:theme="http://jboss.com/products/seam/theme"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="theme-selector">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="1">
- <xs:element ref="theme:available-themes"/>
- </xs:choice>
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="theme:attlist.themeSelector"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="available-themes" type="components:multiValuedProperty"/>
- <xs:attributeGroup name="attlist.themeSelector">
- <xs:attribute name="theme" type="xs:string"/>
- <xs:attribute name="available-themes" type="xs:string"/>
- <xs:attribute name="cookie-enabled">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- </xs:attributeGroup>
-
-</xs:schema>
Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/web-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/web-1.2.xsd 2007-07-26 16:55:09 UTC (rev 2690)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/web-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
- targetNamespace="http://jboss.com/products/seam/web" xmlns:web="http://jboss.com/products/seam/web"
- xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
-
- <xs:element name="multipart-filter">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="web:attlist.filter"/>
- <xs:attributeGroup ref="web:attlist.multipartFilter"/>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="redirect-filter">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="web:attlist.filter"/>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="exception-filter">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="web:attlist.filter"/>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="context-filter">
- <xs:complexType mixed="true">
- <xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="web:attlist.filter"/>
- </xs:complexType>
- </xs:element>
-
- <xs:attributeGroup name="attlist.filter">
- <xs:attribute name="url-pattern" type="xs:string"/>
- </xs:attributeGroup>
-
- <xs:attributeGroup name="attlist.multipartFilter">
- <xs:attribute name="create-temp-files">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="max-request-size" type="xs:integer"/>
- </xs:attributeGroup>
-
-</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/components-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/components"
+ xmlns:components="http://jboss.com/products/seam/components">
+ <xs:element name="components">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:component"/>
+ <xs:element ref="components:factory"/>
+ <xs:element ref="components:event"/>
+ <xs:any namespace="##other" processContents="strict"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="components:property"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.ejbcomponent">
+ <xs:attribute name="jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.component">
+ <xs:attribute name="name"/>
+ <xs:attribute name="class"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="precedence"/>
+ <xs:attribute name="installed" default="true"/>
+ <xs:attribute name="auto-create" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="factory">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.factory"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.factory">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="method"/>
+ <xs:attribute name="value"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="stateless"/>
+ <xs:enumeration value="event"/>
+ <xs:enumeration value="page"/>
+ <xs:enumeration value="conversation"/>
+ <xs:enumeration value="session"/>
+ <xs:enumeration value="business_process"/>
+ <xs:enumeration value="application"/>
+ <xs:enumeration value="STATELESS"/>
+ <xs:enumeration value="EVENT"/>
+ <xs:enumeration value="PAGE"/>
+ <xs:enumeration value="CONVERSATION"/>
+ <xs:enumeration value="SESSION"/>
+ <xs:enumeration value="BUSINESS_PROCESS"/>
+ <xs:enumeration value="APPLICATION"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="auto-create" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="property">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:key"/>
+ <xs:element ref="components:value"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.property"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.property">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="key" type="xs:string"/>
+ <xs:element name="value" type="xs:string"/>
+
+ <xs:complexType name="multiValuedProperty">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:value"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="mapProperty">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:key"/>
+ <xs:element ref="components:value"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="event">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="components:action"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.event"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.event">
+ <xs:attribute name="type" use="required"/>
+ </xs:attributeGroup>
+
+ <xs:element name="action">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.action"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.action">
+ <xs:attribute name="expression" use="required"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,270 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/core" xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="actor">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="core:id"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="core:group-actor-ids"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.actor"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="group-actor-ids" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.actor">
+ <xs:attribute name="group-actor-ids"> </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="dispatcher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ <xs:attributeGroup ref="core:attlist.dispatcher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.dispatcher"> </xs:attributeGroup>
+
+ <xs:element name="transactionListener">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="components:attlist.ejbcomponent"/>
+ <xs:attributeGroup ref="core:attlist.transactionListener"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.transactionListener"> </xs:attributeGroup>
+
+ <xs:element name="ejb">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.ejb"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ejb"> </xs:attributeGroup>
+
+ <xs:element name="init">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.init"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.init">
+ <xs:attribute name="debug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="jndi-pattern"/>
+ <xs:attribute name="client-side-conversations">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="my-faces-lifecycle-bug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="user-transaction-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="jbpm">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="core:process-definitions"/>
+ <xs:element ref="core:pageflow-definitions"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.jbpm"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="process-definitions" type="components:multiValuedProperty"/>
+ <xs:element name="pageflow-definitions" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.jbpm"> </xs:attributeGroup>
+
+ <xs:element name="locale-selector">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.localeSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.localeSelector">
+ <xs:attribute name="locale-string"/>
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="manager">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.manager"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.manager">
+ <xs:attribute name="concurrent-request-timeout" type="xs:integer"/>
+ <xs:attribute name="conversation-timeout" type="xs:integer"/>
+ <xs:attribute name="conversation-id-parameter"/>
+ <xs:attribute name="parent-conversation-id-parameter"/>
+ <xs:attribute name="conversation-is-long-running-parameter"/>
+ </xs:attributeGroup>
+
+ <xs:element name="microcontainer">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.microcontainer"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.microcontainer"> </xs:attributeGroup>
+
+ <xs:element name="pages">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.pages"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.pages">
+ <xs:attribute name="no-conversation-view-id"/>
+ <xs:attribute name="login-view-id"/>
+ <xs:attribute name="http-port" type="xs:integer"/>
+ <xs:attribute name="https-port" type="xs:integer"/>
+ </xs:attributeGroup>
+
+ <xs:element name="pojo-cache">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.pojoCache"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.pojoCache">
+ <xs:attribute name="cfg-resource-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="resource-bundle">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="core:bundle-names"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.resourceBundle"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="bundle-names" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.resourceBundle">
+ <xs:attribute name="bundle-names"> </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="time-zone-selector">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="core:attlist.timeZoneSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.timeZoneSelector">
+ <xs:attribute name="time-zone-id"/>
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-persistence-context">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element ref="core:filters"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="core:attlist.ManagedPersistenceContext"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedPersistenceContext">
+ <xs:attribute name="entity-manager-factory"/>
+ <xs:attribute name="persistence-unit-jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-hibernate-session">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element ref="core:filters"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="core:attlist.ManagedHibernateSession"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="filters" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.ManagedHibernateSession">
+ <xs:attribute name="session-factory"/>
+ <xs:attribute name="session-factory-jndi-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-session-factory">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="mappingClasses" type="components:multiValuedProperty"/>
+ <xs:element name="mappingFiles" type="components:multiValuedProperty"/>
+ <xs:element name="mappingJars" type="components:multiValuedProperty"/>
+ <xs:element name="mappingPackages" type="components:multiValuedProperty"/>
+ <xs:element name="mappingResources" type="components:multiValuedProperty"/>
+ <xs:element name="cfg-properties" type="components:mapProperty"/>
+ </xs:choice>
+ <xs:attributeGroup ref="core:attlist.HibernateSessionFactory"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateSessionFactory">
+ <xs:attribute name="cfg-resource-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="entity-manager-factory">
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name="persistence-unit-properties" type="components:mapProperty"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="core:attlist.EntityManagerFactory"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.EntityManagerFactory">
+ <xs:attribute name="persistence-unit-name"/>
+ </xs:attributeGroup>
+
+ <xs:element name="filter">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="name" type="xs:string"/>
+ <xs:element minOccurs="0" name="parameters" type="components:mapProperty"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="core:attlist.filter"/>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.filter">
+ <xs:attribute name="enabled"/>
+ </xs:attributeGroup>
+
+ <xs:element name="id" type="xs:string"/>
+ <xs:element name="name" type="xs:string"/>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/drools-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/drools" xmlns:drools="http://jboss.com/products/seam/drools"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="rule-base">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="drools:rule-files"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="drools:attlist.RuleBase"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="rule-files" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.RuleBase">
+ <xs:attribute name="dsl-file" type="xs:string"/>
+ <xs:attribute name="rule-files" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-working-memory">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="drools:attlist.ManagedWorkingMemory"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedWorkingMemory">
+ <xs:attribute name="rule-base" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/framework-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/framework"
+ xmlns:framework="http://jboss.com/products/seam/framework"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+
+ <xs:attributeGroup name="attlist.Home">
+ <xs:attribute name="entity-class" type="xs:string"/>
+ <xs:attribute name="new-instance" type="xs:string"/>
+ <xs:attribute name="created-message" type="xs:string"/>
+ <xs:attribute name="updated-message" type="xs:string"/>
+ <xs:attribute name="deleted-message" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.Query">
+ <xs:attribute name="ejbql" type="xs:string"/>
+ <xs:attribute name="max-results" type="xs:integer"/>
+ <xs:attribute name="order" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="restrictions" type="components:multiValuedProperty"/>
+ <xs:element name="hints" type="components:mapProperty"/>
+
+ <xs:element name="ejbql" type="xs:string"/>
+ <xs:element name="order" type="xs:string"/>
+
+ <xs:element name="entity-query">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:ejbql"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:order"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:restrictions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:hints"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Query"/>
+ <xs:attributeGroup ref="framework:attlist.entityQuery"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.entityQuery">
+ <xs:attribute name="entity-manager" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-entity-query">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:ejbql"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:order"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:restrictions"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Query"/>
+ <xs:attributeGroup ref="framework:attlist.HibernateEntityQuery"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateEntityQuery">
+ <xs:attribute name="cacheable">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="cache-region" type="xs:string"/>
+ <xs:attribute name="fetch-size" type="xs:integer"/>
+ <xs:attribute name="session" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="created-message" type="xs:string"/>
+ <xs:element name="updated-message" type="xs:string"/>
+ <xs:element name="deleted-message" type="xs:string"/>
+ <xs:element name="new-instance" type="xs:string"/>
+
+ <xs:element name="entity-home">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="id" type="xs:string"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:created-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:updated-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:deleted-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:new-instance"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Home"/>
+ <xs:attributeGroup ref="framework:attlist.EntityHome"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.EntityHome">
+ <xs:attribute name="entity-manager" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="hibernate-entity-home">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="id" type="xs:string"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:created-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:updated-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:deleted-message"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="framework:new-instance"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="framework:attlist.Home"/>
+ <xs:attributeGroup ref="framework:attlist.HibernateEntityHome"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.HibernateEntityHome">
+ <xs:attribute name="session" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/jms-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/jms" xmlns:jms="http://jboss.com/products/seam/jms"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="topic-connection">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.TopicConnection"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.TopicConnection">
+ <xs:attribute name="topic-connection-factory-jndi-name" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="queue-connection">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.QueueConnection"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.QueueConnection">
+ <xs:attribute name="queue-connection-factory-jndi-name" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-topic-publisher">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.ManagedTopicPublisher"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedTopicPublisher">
+ <xs:attribute name="topic-jndi-name" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="managed-queue-sender">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="jms:attlist.ManagedQueueSender"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.ManagedQueueSender">
+ <xs:attribute name="queue-jndi-name" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/mail-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/mail"
+ xmlns:mail="http://jboss.com/products/seam/mail"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="http://jboss.com/products/seam/components-1.2.xsd"/>
+ <xs:attributeGroup name="attlist.mailSession">
+ <xs:attribute name="username" type="xs:string"/>
+ <xs:attribute name="password" type="xs:string"/>
+ <xs:attribute name="host" type="xs:string"/>
+ <xs:attribute name="port" type="xs:string"/>
+ <xs:attribute name="debug" type="xs:string"/>
+ <xs:attribute name="ssl" type="xs:boolean"/>
+ <xs:attribute name="session-jndi-name" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="mail-session">
+ <xs:complexType>
+ <xs:attributeGroup ref="components:attlist.component" />
+ <xs:attributeGroup ref="mail:attlist.mailSession" />
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/pdf-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/pdf"
+ xmlns:pdf="http://jboss.com/products/seam/pdf"
+ xmlns:components="http://jboss.com/products/seam/components"
+ attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="document-store">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="pdf:attlist.docstore"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.docstore">
+ <xs:attribute name="error-page" type="xs:string"/>
+ <xs:attribute name="use-extensions" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="key-store-config">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="pdf:attlist.UseExtensions"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.UseExtensions">
+ <xs:attribute name="key-store" type="xs:string"/>
+ <xs:attribute name="key-store-password" type="xs:string"/>
+ <xs:attribute name="key-password" type="xs:string"/>
+ <xs:attribute name="key-alias" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/remoting-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/remoting" xmlns:remoting="http://jboss.com/products/seam/remoting"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="remoting-config">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="remoting:attlist.remotingConfig"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.remotingConfig">
+ <xs:attribute name="poll-interval" />
+ <xs:attribute name="poll-timeout" />
+ <xs:attribute name="debug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <!-- subscription registry -->
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/security-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/security" xmlns:security="http://jboss.com/products/seam/security"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="identity">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="security:attlist.identity"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.identity">
+ <xs:attribute name="authenticate-method" />
+ <xs:attribute name="remember-me" type="xs:boolean"/>
+ <xs:attribute name="jaas-config-name" type="xs:string"/>
+ <xs:attribute name="security-rules" type="xs:string"/>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/spring-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/spring" xmlns:spring="http://jboss.com/products/seam/spring"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="http://jboss.com/products/seam/components-1.2.xsd"/>
+
+ <xs:element name="context-loader">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="spring:config-locations"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attribute name="config-locations" type="xs:string" use="optional" default="/WEB-INF/applicationContext.xml">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ A single application context config location.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="config-locations" type="components:multiValuedProperty">
+ <xs:annotation>
+ <xs:documentation>
+ <![CDATA[
+ Allows you to specify many config-locations in nested value elements.
+ ]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/theme-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/theme" xmlns:theme="http://jboss.com/products/seam/theme"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="theme-selector">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="theme:available-themes"/>
+ </xs:choice>
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="theme:attlist.themeSelector"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="available-themes" type="components:multiValuedProperty"/>
+ <xs:attributeGroup name="attlist.themeSelector">
+ <xs:attribute name="theme" type="xs:string"/>
+ <xs:attribute name="available-themes" type="xs:string"/>
+ <xs:attribute name="cookie-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+
+</xs:schema>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-1.2.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-1.2.xsd (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/web-1.2.xsd 2007-07-26 16:58:00 UTC (rev 2691)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/seam/web" xmlns:web="http://jboss.com/products/seam/web"
+ xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-1.2.xsd"/>
+
+ <xs:element name="multipart-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ <xs:attributeGroup ref="web:attlist.multipartFilter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="redirect-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="exception-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="context-filter">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="web:attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.filter">
+ <xs:attribute name="url-pattern" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.multipartFilter">
+ <xs:attribute name="create-temp-files">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="max-request-size" type="xs:integer"/>
+ </xs:attributeGroup>
+
+</xs:schema>
17 years, 5 months
JBoss Tools SVN: r2690 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 12:55:09 -0400 (Thu, 26 Jul 2007)
New Revision: 2690
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EntityXMLRegistration.java
Log:
EXIN-86 check for schema improved
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EntityXMLRegistration.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EntityXMLRegistration.java 2007-07-26 16:54:56 UTC (rev 2689)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EntityXMLRegistration.java 2007-07-26 16:55:09 UTC (rev 2690)
@@ -1,9 +1,11 @@
package org.jboss.tools.common.model.util;
+import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.wst.common.uriresolver.internal.ExtensibleURIResolver;
+import org.eclipse.wst.xml.core.internal.XMLCorePlugin;
import org.jboss.tools.common.meta.XAttribute;
import org.jboss.tools.common.meta.XModelEntity;
import org.jboss.tools.common.xml.XMLEntityResolver;
@@ -16,6 +18,8 @@
public static int SCHEMA = 1;
public static int MISSING = 2;
+ static boolean isResolvingSchema = false;
+
private EntityXMLRegistration() {}
public static EntityXMLRegistration getInstance() {
@@ -33,8 +37,8 @@
return resolveDTD(entity, a);
}
a = entity.getAttribute("xsi:schemaLocation");
- if(a != null) {
-// return resolveSchema(entity, a);
+ if(a != null && isResolvingSchema) {
+ return resolveSchema(entity, a);
}
resolved.put(entity, new Integer(UNRESOLVED));
return UNRESOLVED;
@@ -64,9 +68,19 @@
resolved.put(entity, new Integer(MISSING));
return MISSING;
}
- ExtensibleURIResolver r = new ExtensibleURIResolver();
- String s = r.resolve(null, vs[0], vs[1]);
- if(s != null && s.length() > 0) {
+ String location = null;
+ try {
+ location = XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolvePublic(vs[0], vs[1]);
+ if(location == null) location = XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolveSystem(vs[1]);
+ if(location == null) location = XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolveURI(vs[1]);
+ } catch (IOException e) {
+ //ignore
+ }
+ if(location == null) {
+ ExtensibleURIResolver r = new ExtensibleURIResolver();
+ location = r.resolve(null, vs[0], vs[1]);
+ }
+ if(location != null && location.length() > 0) {
resolved.put(entity, new Integer(SCHEMA));
return SCHEMA;
}
17 years, 5 months
JBoss Tools SVN: r2689 - trunk/common/plugins/org.jboss.tools.common/META-INF.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-26 12:54:56 -0400 (Thu, 26 Jul 2007)
New Revision: 2689
Modified:
trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF
Log:
EXIN-86 check for schema improved
Modified: trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2007-07-26 16:20:04 UTC (rev 2688)
+++ trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2007-07-26 16:54:56 UTC (rev 2689)
@@ -130,11 +130,11 @@
org.w3c.dom.ls
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.wst.wsdl.validation,
- org.eclipse.wst.xml.core,
+ org.eclipse.wst.xml.core;visibility:=reexport,
org.eclipse.jface,
org.eclipse.core.resources,
org.eclipse.ui,
- org.eclipse.wst.common.uriresolver,
+ org.eclipse.wst.common.uriresolver;visibility:=reexport,
org.eclipse.core.net
Bundle-Version: 2.0.0
Eclipse-LazyStart: true
17 years, 5 months
JBoss Tools SVN: r2688 - in trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping: onetoone/optional and 10 other directories.
by jbosstools-commits@lists.jboss.org
Author: mdryakhlenkov
Date: 2007-07-26 12:20:04 -0400 (Thu, 26 Jul 2007)
New Revision: 2688
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/nopojo/Person.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Mapping.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Mapping.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.hbm.xml
Log:
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/nopojo/Person.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/nopojo/Person.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/nopojo/Person.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping package="mapping.onetoone.nopojo">
+
+ <class entity-name="Person">
+ <id name="id" type="long">
+ <generator class="foreign">
+ <param name="property">address</param>
+ </generator>
+ </id>
+ <property name="name" type="string"/>
+ <one-to-one name="address" cascade="all" entity-name="Address" constrained="true"/>
+ </class>
+
+ <class entity-name="Address">
+ <id name="id" type="long">
+ <generator class="native"/>
+ </id>
+ <property name="street" type="string"/>
+ <property name="state" type="string"/>
+ <property name="zip" type="string"/>
+ <one-to-one name="owner" entity-name="Person" />
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+ Demonstrates mapping an "optional" one-to-one association. Basically
+ a (zero or one)-to-one.
+
+ Note that this is only conceptually possible on the non-constrained
+ side of the association (the side without the FK).
+
+ Also, it is impossible that the optional side be lazy; we must hit the
+ target table to determine whether a matching row actually exists or not.
+ This is so we can properly determine whether to use null or some value
+ for the association property's value.
+-->
+<hibernate-mapping package="mapping.onetoone.optional" default-access="field">
+
+ <class name="Entity">
+ <id name="name"/>
+ <joined-subclass name="Person">
+ <key column="entityName"/>
+ <one-to-one name="address" cascade="all" constrained="false" outer-join="false" lazy="proxy"/>
+ </joined-subclass>
+ <joined-subclass name="Org">
+ <key column="entityName"/>
+ </joined-subclass>
+ </class>
+
+ <class name="Address">
+ <id name="entityName"/>
+ <property name="street"/>
+ <property name="state"/>
+ <property name="zip"/>
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping
+ package="mapping.onetoone.singletable"
+ default-access="field">
+
+ <class name="Entity">
+ <id name="name"/>
+ <discriminator type="string" column="subtype"/>
+ <subclass name="Person">
+ <one-to-one name="address" cascade="all"/>
+ <one-to-one name="mailingAddress"
+ cascade="all"
+ entity-name="MailingAddress"/>
+ </subclass>
+ <subclass name="Org">
+ <set name="addresses" inverse="true" cascade="all-delete-orphan">
+ <key column="entityName"/>
+ <one-to-many class="Address"/>
+ </set>
+ </subclass>
+ </class>
+
+ <class name="Address">
+ <id name="entityName"/>
+
+ <property name="street"/>
+ <property name="state"/>
+ <property name="zip"/>
+ </class>
+
+ <class name="Address" entity-name="MailingAddress">
+ <id name="entityName"/>
+ <property name="street"/>
+ <property name="state"/>
+ <property name="zip"/>
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+-->
+
+<hibernate-mapping package="mapping.ops">
+
+ <class name="Employer" polymorphism="explicit">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <version column="vers" name="vers"/>
+ <bag name="employees"
+ cascade="persist,merge"
+ table="EMPLOYER_EMPLOYEE">
+ <key column="EMPER_ID"/>
+ <many-to-many class="Employee" column="EMPEE_ID" />
+ </bag>
+ </class>
+
+ <class name="Employee" polymorphism="explicit">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <bag name="employers"
+ inverse="true"
+ cascade="persist,merge,save-update"
+ table="EMPLOYER_EMPLOYEE">
+ <key column="EMPEE_ID"/>
+ <many-to-many class="Employer" column="EMPER_ID" />
+ </bag>
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+ Demonstrates the use of dirty-property optimistic locking.
+ We do not recommend this approach, since it does not work
+ for detached entities. Use version-based optimistic locking.
+
+-->
+
+<hibernate-mapping package="mapping.optlock">
+
+ <class name="Document" entity-name="LockDirty" table="Document" optimistic-lock="dirty" dynamic-update="true">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <property name="title"/>
+ <property name="author"/>
+ <component name="pubDate">
+ <property name="year" not-null="true"/>
+ <property name="month"/>
+ </component>
+ <property name="summary"/>
+ <property name="totalSales" optimistic-lock="false"/>
+ <property name="text" column="`text`"/>
+ </class>
+
+ <class name="Document" entity-name="LockAll" table="Document" optimistic-lock="all" dynamic-update="true">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <property name="title"/>
+ <property name="author"/>
+ <component name="pubDate">
+ <property name="year" not-null="true"/>
+ <property name="month"/>
+ </component>
+ <property name="summary"/>
+ <property name="totalSales" optimistic-lock="false"/>
+ <property name="text" column="`text`"/>
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+-->
+
+<hibernate-mapping package="mapping.ordered">
+
+ <class name="Search">
+ <id name="searchString"/>
+ <set name="searchResults" order-by="lower(text) asc">
+ <key column="searchString"/>
+ <element column="text" type="string"/>
+ </set>
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE hibernate-mapping PUBLIC
+ '-//Hibernate/Hibernate Mapping DTD 3.0//EN'
+ 'http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd'>
+
+<hibernate-mapping package="mapping.orphan" >
+
+ <class name="User" table="t_user">
+
+ <id name="id" type="integer" column="id">
+ <generator class="native" />
+ </id>
+
+ <property name="userid">
+ <column name="userid" length="32" not-null="true"/>
+ </property>
+
+ <set name="mail" table="mail" cascade="all, delete-orphan" inverse="true" lazy="false">
+ <key column="userid" property-ref="userid" not-null="false"/>
+ <one-to-many class="Mail"/>
+ </set>
+
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping
+ package="mapping.pagination">
+
+ <class name="DataPoint"
+ dynamic-update="true">
+ <!--rowid="rowid"--> <!-- remove this if not oracle -->
+ <id name="id">
+ <generator class="increment"/>
+ </id>
+ <property name="x">
+ <column name="xval" not-null="true" precision="4" unique-key="xy"/>
+ </property>
+ <property name="y">
+ <column name="yval" not-null="true" precision="4" unique-key="xy"/>
+ </property>
+ <property name="description"/>
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+ Demonstrates the use of property-ref to map legacy data where
+ foreign keys reference something other than the primary key of
+ the associated entity. Here we show:
+
+ (1) A one-to-one foreign key association (prefer primary key
+ associations)
+
+ (2) A bidirectional one-to-many association on a key that is
+ not the primary key (prefer associations from foreign keys
+ to primary keys)
+
+-->
+
+<hibernate-mapping package="mapping.propertyref.basic">
+
+ <class name="Person" table="PROPREF_PERS">
+ <id name="id">
+ <generator class="hilo"/>
+ </id>
+ <property name="name" length="100"/>
+ <property name="userId" column="person_userid" length="8" unique="true"/>
+ <one-to-one name="address" property-ref="person" cascade="all" fetch="join"/>
+ <set name="accounts" inverse="true">
+ <key column="userId" property-ref="userId"/>
+ <one-to-many class="Account"/>
+ </set>
+ <bag name="systems" table="USER_SYSTEM" lazy="true" inverse="false" cascade="all">
+ <key column="USER_ID" property-ref="userId" />
+ <element type="string" column="SYSTEM" />
+ </bag>
+ </class>
+
+ <class name="Address" table="PROPREF_ADDR">
+ <id name="id">
+ <generator class="hilo"/>
+ </id>
+ <property name="address" length="300"/>
+ <property name="zip" length="5"/>
+ <property name="country" length="25"/>
+ <many-to-one name="person" unique="true" not-null="true"/>
+ </class>
+
+ <class name="Account" table="PROPREF_ACCT">
+ <id name="accountId" length="32">
+ <generator class="uuid.hex"/>
+ </id>
+ <many-to-one name="user" column="userId" property-ref="userId"/>
+ <property name="type" not-null="true"/>
+ </class>
+
+ <class name="Group" table="PROPREF_GRP">
+ <id name="name"/>
+ <set name="users" table="PROPREF_USERGROUP" cascade="save-update">
+ <key column="groupName"/>
+ <many-to-many column="userId" class="Person" property-ref="userId"/>
+ </set>
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Mapping.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Mapping.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Mapping.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+
+-->
+
+<hibernate-mapping package="mapping.propertyref.component.complete">
+
+ <class name="Person" table="COMP_COMP_PROPREF_PERSON">
+ <id name="id">
+ <generator class="increment"/>
+ </id>
+ <component name="identity" class="Identity">
+ <property name="name"/>
+ <property name="ssn" unique="true"/>
+ </component>
+ </class>
+
+ <class name="Account" table="COMP_COMP_PROPREF_ACCT">
+ <id name="number" column="accnum"/>
+ <many-to-one name="owner" property-ref="identity">
+ <column name="OWNER_NAME" />
+ <column name="OWNER_SSN" />
+ </many-to-one>
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Mapping.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Mapping.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Mapping.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+
+-->
+
+<hibernate-mapping package="mapping.propertyref.component.partial">
+
+ <class name="Person" table="PART_COMP_PROPREF_PERS">
+ <id name="id">
+ <generator class="increment"/>
+ </id>
+ <component name="identity">
+ <property name="name"/>
+ <property name="ssn" unique="true"/>
+ </component>
+ </class>
+
+ <class name="Account" table="PART_COMP_PROPREF_ACCT">
+ <id name="number" column="accnum"/>
+ <many-to-one name="owner" property-ref="identity.ssn"/>
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.hbm.xml 2007-07-26 16:20:04 UTC (rev 2688)
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping package="mapping.propertyref.inheritence.discrim">
+
+ <class name="Person" discriminator-value="null" table="D_SBCLS_PROPREF_PERS">
+ <id name="id">
+ <generator class="hilo"/>
+ </id>
+ <discriminator formula="customerId"/>
+ <property name="name" length="100"/>
+ <property name="personId" length="8" unique="true"/>
+
+ <subclass name="Customer" discriminator-value="not null">
+ <property name="customerId" length="8" unique="true"/>
+ </subclass>
+ </class>
+
+ <class name="Account" table="D_SBCLS_PROPREF_ACCT">
+ <id name="accountId" length="32">
+ <generator class="uuid.hex"/>
+ </id>
+ <many-to-one name="person" column="personId" unique="true" property-ref="personId"/>
+ <many-to-one name="customer" column="customerPersonId" unique="true" property-ref="personId"/>
+ <property name="type" not-null="true"/>
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
17 years, 5 months
JBoss Tools SVN: r2687 - in trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping: onetoone and 14 other directories.
by jbosstools-commits@lists.jboss.org
Author: mdryakhlenkov
Date: 2007-07-26 12:18:37 -0400 (Thu, 26 Jul 2007)
New Revision: 2687
Added:
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/nopojo/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Address.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Entity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Org.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Address.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Entity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Org.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Address.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competitor.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employee.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/NumberedNode.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OneToOne.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OptLockEntity.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/PersonalDetails.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/TimestampedEntity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/VersionedEntity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/PublicationDate.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Part.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.hbm.xml
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Account.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Address.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Group.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Account.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Identity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Account.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Identity.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Person.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Account.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Customer.java
trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.java
Log:
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Address.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Address.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Address.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,15 @@
+package mapping.onetoone.optional;
+
+/**
+ * @author Gavin King
+ */
+public class Address {
+ public String entityName;
+ public String street;
+ public String state;
+ public String zip;
+
+ public String toString() {
+ return this.getClass() + ":" + street;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Entity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Entity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Entity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,8 @@
+package mapping.onetoone.optional;
+
+/**
+ * @author Gavin King
+ */
+public class Entity {
+ public String name;
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Org.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Org.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Org.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,8 @@
+package mapping.onetoone.optional;
+
+
+/**
+ * @author Gavin King
+ */
+public class Org extends Entity {
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/optional/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,9 @@
+package mapping.onetoone.optional;
+
+/**
+ * @author Gavin King
+ */
+public class Person extends Entity {
+ public Address address;
+ public Address mailingAddress;
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Address.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Address.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Address.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,12 @@
+//$Id: Address.java 5686 2005-02-12 07:27:32Z steveebersole $
+package mapping.onetoone.singletable;
+
+/**
+ * @author Gavin King
+ */
+public class Address {
+ public String entityName;
+ public String street;
+ public String state;
+ public String zip;
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Entity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Entity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Entity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,9 @@
+//$Id: Entity.java 5686 2005-02-12 07:27:32Z steveebersole $
+package mapping.onetoone.singletable;
+
+/**
+ * @author Gavin King
+ */
+public class Entity {
+ public String name;
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Org.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Org.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Org.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,12 @@
+//$Id: Org.java 5686 2005-02-12 07:27:32Z steveebersole $
+package mapping.onetoone.singletable;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author Gavin King
+ */
+public class Org extends Entity {
+ public Set addresses = new HashSet();
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/onetoone/singletable/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,10 @@
+//$Id: Person.java 5686 2005-02-12 07:27:32Z steveebersole $
+package mapping.onetoone.singletable;
+
+/**
+ * @author Gavin King
+ */
+public class Person extends Entity {
+ public Address address;
+ public Address mailingAddress;
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Address.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Address.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Address.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,65 @@
+package mapping.ops;
+
+/**
+ * {@inheritDoc}
+ *
+ * @author Steve Ebersole
+ */
+public class Address {
+ private Long id;
+ private String streetAddress;
+ private String city;
+ private String country;
+ private Person resident;
+
+ public Address() {
+ }
+
+ public Address(String streetAddress, String city, String country, Person resident) {
+ this.streetAddress = streetAddress;
+ this.city = city;
+ this.country = country;
+ this.resident = resident;
+ resident.setAddress( this );
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getStreetAddress() {
+ return streetAddress;
+ }
+
+ public void setStreetAddress(String streetAddress) {
+ this.streetAddress = streetAddress;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country;
+ }
+
+ public Person getResident() {
+ return resident;
+ }
+
+ public void setResident(Person resident) {
+ this.resident = resident;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+-->
+
+<hibernate-mapping package="mapping.ops">
+
+ <class name="Competition">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <list name="competitors" table="COMPET_ION_OR" cascade="persist,merge,delete">
+ <key column="TION_ID"/>
+ <list-index column="INDEX_COL"/>
+ <many-to-many class="Competitor" column="TOR_ID" />
+ </list>
+ </class>
+
+ <class name="Competitor">
+ <id name="id">
+ <generator class="native"/>
+ </id>
+ <property name="name"/>
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competition.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,31 @@
+//$Id: $
+package mapping.ops;
+
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @author Emmanuel Bernard
+ */
+public class Competition {
+ private Integer id;
+
+ private List competitors = new ArrayList();
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public List getCompetitors() {
+ return competitors;
+ }
+
+ public void setCompetitors(List competitors) {
+ this.competitors = competitors;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competitor.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competitor.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Competitor.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,34 @@
+//$Id: $
+package mapping.ops;
+
+/**
+ * @author Emmanuel Bernard
+ */
+public class Competitor {
+ public Integer id;
+ private String name;
+
+
+ public Competitor() {
+ }
+
+ public Competitor(String name) {
+ this.name = name;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employee.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employee.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employee.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,35 @@
+//$Id: Employee.java 5686 2005-02-12 07:27:32Z steveebersole $
+package mapping.ops;
+
+import java.util.Collection;
+import java.io.Serializable;
+
+
+/**
+ * Employee in an Employer-Employee relationship
+ *
+ * @author Emmanuel Bernard
+ */
+
+public class Employee implements Serializable {
+ private Integer id;
+ private Collection employers;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer integer) {
+ id = integer;
+ }
+
+
+ public Collection getEmployers() {
+ return employers;
+ }
+
+ public void setEmployers(Collection employers) {
+ this.employers = employers;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Employer.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,44 @@
+//$Id: Employer.java 8670 2005-11-25 17:36:29Z epbernard $
+package mapping.ops;
+
+import java.util.Collection;
+import java.io.Serializable;
+
+
+/**
+ * Employer in a employer-Employee relationship
+ *
+ * @author Emmanuel Bernard
+ */
+
+public class Employer implements Serializable {
+ private Integer id;
+ private Collection employees;
+ private Integer vers;
+
+ public Integer getVers() {
+ return vers;
+ }
+
+ public void setVers(Integer vers) {
+ this.vers = vers;
+ }
+
+
+ public Collection getEmployees() {
+ return employees;
+ }
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setEmployees(Collection set) {
+ employees = set;
+ }
+
+ public void setId(Integer integer) {
+ id = integer;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+-->
+
+<hibernate-mapping package="mapping.ops">
+
+ <class name="Node" polymorphism="explicit">
+ <id name="name">
+ <generator class="assigned"/>
+ </id>
+ <property name="description"/>
+ <many-to-one name="parent"/>
+ <property name="created" not-null="true"/>
+ <set name="children"
+ inverse="true"
+ cascade="persist,merge,save-update,evict">
+ <key column="parent"/>
+ <one-to-many class="Node"/>
+ </set>
+ <set name="cascadingChildren" inverse="false" cascade="persist,merge,save-update,evict,delete">
+ <key column="CASC_PARENT"/>
+ <one-to-many class="Node"/>
+ </set>
+ </class>
+
+ <class name="NumberedNode" polymorphism="explicit">
+ <id name="id" unsaved-value="0">
+ <generator class="native"/>
+ </id>
+ <property name="name">
+ <column name="name" index="iname" not-null="true"/>
+ </property>
+ <property name="description"/>
+ <property name="created" not-null="true"
+ type="imm_date"/>
+ <many-to-one name="parent" class="NumberedNode"/>
+ <set name="children"
+ inverse="true"
+ cascade="persist,merge,save-update">
+ <key column="parent"/>
+ <one-to-many class="NumberedNode"/>
+ </set>
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Node.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,88 @@
+//$Id: Node.java 10760 2006-11-08 00:01:34Z steve.ebersole(a)jboss.com $
+package mapping.ops;
+
+import java.sql.Date;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author Gavin King
+ */
+public class Node {
+
+ private String name;
+ private String description;
+ private Date created;
+ private Node parent;
+ private Set children = new HashSet();
+ private Set cascadingChildren = new HashSet();
+
+ public Node() {
+ }
+
+ public Node(String name) {
+ this.name = name;
+ created = generateCurrentDate();
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date getCreated() {
+ return created;
+ }
+
+ public void setCreated(Date created) {
+ this.created = created;
+ }
+
+ public Node getParent() {
+ return parent;
+ }
+
+ public void setParent(Node parent) {
+ this.parent = parent;
+ }
+
+ public Set getChildren() {
+ return children;
+ }
+
+ public void setChildren(Set children) {
+ this.children = children;
+ }
+
+ public Node addChild(Node child) {
+ children.add( child );
+ child.setParent( this );
+ return this;
+ }
+
+ public Set getCascadingChildren() {
+ return cascadingChildren;
+ }
+
+ public void setCascadingChildren(Set cascadingChildren) {
+ this.cascadingChildren = cascadingChildren;
+ }
+
+ private Date generateCurrentDate() {
+ // Note : done as java.sql.Date mainly to work around issue with
+ // MySQL and its lack of milli-second precision on its DATETIME
+ // and TIMESTAMP datatypes.
+ return new Date( new java.util.Date().getTime() );
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/NumberedNode.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/NumberedNode.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/NumberedNode.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,75 @@
+//$Id: NumberedNode.java 7236 2005-06-20 03:19:34Z oneovthafew $
+package mapping.ops;
+
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author Gavin King
+ */
+public class NumberedNode {
+
+ private long id;
+ private String name;
+ private NumberedNode parent;
+ private Set children = new HashSet();
+ private String description;
+ private Date created;
+
+ public NumberedNode() {
+ super();
+ }
+
+ public NumberedNode(String name) {
+ this.name = name;
+ created = new Date();
+ }
+
+ public long getId() {
+ return id;
+ }
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public Set getChildren() {
+ return children;
+ }
+ public void setChildren(Set children) {
+ this.children = children;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public NumberedNode getParent() {
+ return parent;
+ }
+ public void setParent(NumberedNode parent) {
+ this.parent = parent;
+ }
+
+ public NumberedNode addChild(NumberedNode child) {
+ children.add(child);
+ child.setParent(this);
+ return this;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date getCreated() {
+ return created;
+ }
+
+ public void setCreated(Date created) {
+ this.created = created;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OneToOne.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OneToOne.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OneToOne.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+ Mappings demonstrating bidirectional one-to-one mappings for testing
+ with various operations.
+
+ Person -> Address is modeled as a bidirectional one to one based on FK.
+ Person -> Details is modeled as a bidirectional one to one based on PK.
+-->
+
+<hibernate-mapping package="mapping.ops">
+
+ <class name="Person" table="OPS_PERSON">
+ <id name="id" column="ID" type="long">
+ <generator class="increment"/>
+ </id>
+ <property name="name" column="NAME" type="string"/>
+ <one-to-one name="address" class="Address" property-ref="resident" />
+ <one-to-one name="details" class="PersonalDetails" cascade="all" />
+ </class>
+
+ <class name="Address" table="OPS_ADDRESS">
+ <id name="id" column="ID" type="long">
+ <generator class="increment"/>
+ </id>
+ <property name="streetAddress" column="STREET" type="string" />
+ <property name="city" column="CITY" type="string" />
+ <property name="country" column="CTRY" type="string" />
+ <many-to-one name="resident" column="RESIDENT" class="Person" />
+ </class>
+
+ <class name="PersonalDetails" table="OPS_PERS_DETAIL">
+ <id name="id" column="ID" type="long">
+ <generator class="increment"/>
+ </id>
+ <property name="somePersonalDetail" column="SOME_DETAIL" type="string"/>
+ <one-to-one name="person" class="Person" cascade="none" constrained="true" />
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OptLockEntity.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OptLockEntity.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/OptLockEntity.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+-->
+
+<hibernate-mapping package="mapping.ops">
+
+ <class name="VersionedEntity" table="V_ENTITY">
+ <id name="id" column="ID" type="string">
+ <generator class="assigned"/>
+ </id>
+ <version name="version" column="VERS" type="long" />
+ <property name="name" column="NAME" type="string" />
+ <many-to-one name="parent" class="VersionedEntity"/>
+ <set name="children"
+ inverse="true"
+ cascade="persist,merge,save-update,evict,delete">
+ <key column="parent"/>
+ <one-to-many class="VersionedEntity"/>
+ </set>
+ </class>
+
+ <class name="TimestampedEntity" table="T_ENTITY">
+ <id name="id" column="ID" type="string">
+ <generator class="assigned"/>
+ </id>
+ <timestamp name="timestamp" column="TS" />
+ <property name="name" column="NAME" type="string" />
+ </class>
+
+</hibernate-mapping>
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,52 @@
+package mapping.ops;
+
+/**
+ * {@inheritDoc}
+ *
+ * @author Steve Ebersole
+ */
+public class Person {
+ private Long id;
+ private String name;
+ private Address address;
+ private PersonalDetails details;
+
+ public Person() {
+ }
+
+ public Person(String name) {
+ this.name = name;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Address getAddress() {
+ return address;
+ }
+
+ public void setAddress(Address address) {
+ this.address = address;
+ }
+
+ public PersonalDetails getDetails() {
+ return details;
+ }
+
+ public void setDetails(PersonalDetails details) {
+ this.details = details;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/PersonalDetails.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/PersonalDetails.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/PersonalDetails.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,45 @@
+package mapping.ops;
+
+/**
+ * {@inheritDoc}
+ *
+ * @author Steve Ebersole
+ */
+public class PersonalDetails {
+ private Long id;
+ private String somePersonalDetail;
+ private Person person;
+
+ public PersonalDetails() {
+ }
+
+ public PersonalDetails(String somePersonalDetail, Person person) {
+ this.somePersonalDetail = somePersonalDetail;
+ this.person = person;
+ person.setDetails( this );
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getSomePersonalDetail() {
+ return somePersonalDetail;
+ }
+
+ public void setSomePersonalDetail(String somePersonalDetail) {
+ this.somePersonalDetail = somePersonalDetail;
+ }
+
+ public Person getPerson() {
+ return person;
+ }
+
+ public void setPerson(Person person) {
+ this.person = person;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/TimestampedEntity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/TimestampedEntity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/TimestampedEntity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,47 @@
+package mapping.ops;
+
+import java.util.Date;
+
+/**
+ * todo: describe TimestampedEntity
+ *
+ * @author Steve Ebersole
+ */
+public class TimestampedEntity {
+ private String id;
+ private String name;
+ private Date timestamp;
+
+ public TimestampedEntity() {
+ }
+
+ public TimestampedEntity(String id, String name) {
+ this.id = id;
+ this.name = name;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Date getTimestamp() {
+ return timestamp;
+ }
+
+ public void setTimestamp(Date timestamp) {
+ this.timestamp = timestamp;
+ }
+}
+
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/VersionedEntity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/VersionedEntity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ops/VersionedEntity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,66 @@
+package mapping.ops;
+
+import java.util.Set;
+import java.util.HashSet;
+
+/**
+ * VersionedEntity
+ *
+ * @author Steve Ebersole
+ */
+public class VersionedEntity {
+ private String id;
+ private String name;
+ private long version;
+
+ private VersionedEntity parent;
+ private Set children = new HashSet();
+
+ public VersionedEntity() {
+ }
+
+ public VersionedEntity(String id, String name) {
+ this.id = id;
+ this.name = name;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public long getVersion() {
+ return version;
+ }
+
+ public void setVersion(long version) {
+ this.version = version;
+ }
+
+ public VersionedEntity getParent() {
+ return parent;
+ }
+
+ public void setParent(VersionedEntity parent) {
+ this.parent = parent;
+ }
+
+ public Set getChildren() {
+ return children;
+ }
+
+ public void setChildren(Set children) {
+ this.children = children;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/Document.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,87 @@
+//$Id: Document.java 7552 2005-07-19 18:51:24Z oneovthafew $
+package mapping.optlock;
+
+/**
+ * @author Gavin King
+ */
+public class Document {
+ private Long id;
+ private String author;
+ private String title;
+ private String summary;
+ private String text;
+ private PublicationDate pubDate;
+ private int totalSales;
+ /**
+ * @return Returns the author.
+ */
+ public String getAuthor() {
+ return author;
+ }
+ /**
+ * @param author The author to set.
+ */
+ public void setAuthor(String author) {
+ this.author = author;
+ }
+ /**
+ * @return Returns the id.
+ */
+ public Long getId() {
+ return id;
+ }
+ /**
+ * @param id The id to set.
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+ /**
+ * @return Returns the summary.
+ */
+ public String getSummary() {
+ return summary;
+ }
+ /**
+ * @param summary The summary to set.
+ */
+ public void setSummary(String summary) {
+ this.summary = summary;
+ }
+ /**
+ * @return Returns the text.
+ */
+ public String getText() {
+ return text;
+ }
+ /**
+ * @param text The text to set.
+ */
+ public void setText(String text) {
+ this.text = text;
+ }
+ /**
+ * @return Returns the title.
+ */
+ public String getTitle() {
+ return title;
+ }
+ /**
+ * @param title The title to set.
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+ public PublicationDate getPubDate() {
+ return pubDate;
+ }
+ public void setPubDate(PublicationDate pubDate) {
+ this.pubDate = pubDate;
+ }
+ public int getTotalSales() {
+ return totalSales;
+ }
+ public void setTotalSales(int totalSales) {
+ this.totalSales = totalSales;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/PublicationDate.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/PublicationDate.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/optlock/PublicationDate.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,26 @@
+//$Id: PublicationDate.java 7556 2005-07-19 23:22:27Z oneovthafew $
+package mapping.optlock;
+
+public class PublicationDate {
+ private int year;
+ private Integer month;
+
+ public PublicationDate(int year) {
+ this.year = year;
+ }
+
+ PublicationDate() {}
+
+ public Integer getMonth() {
+ return month;
+ }
+ public void setMonth(Integer month) {
+ this.month = month;
+ }
+ public int getYear() {
+ return year;
+ }
+ public void setYear(int year) {
+ this.year = year;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/ordered/Search.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,29 @@
+//$Id: Search.java 7772 2005-08-05 23:03:46Z oneovthafew $
+package mapping.ordered;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Search {
+ private String searchString;
+ private Set searchResults = new HashSet();
+
+ Search() {}
+
+ public Search(String string) {
+ searchString = string;
+ }
+
+ public Set getSearchResults() {
+ return searchResults;
+ }
+ public void setSearchResults(Set searchResults) {
+ this.searchResults = searchResults;
+ }
+ public String getSearchString() {
+ return searchString;
+ }
+ public void setSearchString(String searchString) {
+ this.searchString = searchString;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE hibernate-mapping PUBLIC
+ '-//Hibernate/Hibernate Mapping DTD 3.0//EN'
+ 'http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd'>
+
+<hibernate-mapping package="mapping.orphan" >
+
+ <class name="Mail" table="t_mail">
+
+ <id name="id" type="integer" column="id">
+ <generator class="native" />
+ </id>
+
+ <property name="alias">
+ <column name="alias" length="20"/>
+ </property>
+
+ <many-to-one name="user"
+ class="User"
+ cascade="save-update"
+ column="userid"
+ not-null="true"
+ property-ref="userid"/>
+
+ </class>
+
+</hibernate-mapping>
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Mail.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,41 @@
+package mapping.orphan;
+
+public class Mail {
+
+ private Integer id;
+ private String alias;
+ private User user;
+
+ /*package*/ Mail() {
+ }
+
+ /*package*/ Mail(String alias, User user) {
+ this.alias = alias;
+ this.user = user;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ protected void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getAlias() {
+ return alias;
+ }
+
+ public void setAlias(String alias) {
+ this.alias = alias;
+ }
+
+ public User getUser() {
+ return user;
+ }
+
+ public void setUser(User user) {
+ this.user = user;
+ }
+
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Part.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Part.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Part.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,24 @@
+//$Id: Part.java 5725 2005-02-14 12:10:15Z oneovthafew $
+package mapping.orphan;
+
+import java.io.Serializable;
+
+/**
+ * @author Gavin King
+ */
+public class Part implements Serializable {
+ private String name;
+ private String description;
+ public String getDescription() {
+ return description;
+ }
+ public void setDescription(String description) {
+ this.description = description;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.hbm.xml
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.hbm.xml (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.hbm.xml 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+ "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<!--
+
+
+-->
+
+<hibernate-mapping package="mapping.orphan">
+
+ <class name="Product" table="t_product">
+ <id name="name"/>
+ <set name="parts" cascade="all,delete-orphan" fetch="join">
+ <key column="productName" not-null="true"/>
+ <one-to-many class="Part"/>
+ </set>
+ </class>
+
+ <class name="Part" table="t_part">
+ <id name="name"/>
+ <property name="description" not-null="true"/>
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/Product.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,26 @@
+//$Id: Product.java 5725 2005-02-14 12:10:15Z oneovthafew $
+package mapping.orphan;
+
+import java.io.Serializable;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author Gavin King
+ */
+public class Product implements Serializable {
+ private String name;
+ private Set parts = new HashSet();
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public Set getParts() {
+ return parts;
+ }
+ public void setParts(Set parts) {
+ this.parts = parts;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/orphan/User.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,62 @@
+/*
+ * User.java
+ *
+ * Created on May 3, 2005, 9:42 AM
+ */
+
+package mapping.orphan;
+
+import java.util.HashSet;
+import java.util.Set;
+
+
+/**
+ * @author Kevin
+ */
+public class User {
+
+ private Integer id;
+ private String userid;
+ private Set mail = new HashSet();
+
+ public User() {
+ }
+
+ public User(String userid) {
+ this.userid = userid;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ protected void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUserid() {
+ return userid;
+ }
+
+ public void setUserid(String userid) {
+ this.userid = userid;
+ }
+
+ public Set getMail() {
+ return mail;
+ }
+
+ private void setMail(Set mail) {
+ this.mail = mail;
+ }
+
+ public Mail addMail(String alias) {
+ Mail mail = new Mail( alias, this );
+ getMail().add( mail );
+ return mail;
+ }
+
+ public void removeMail(Mail mail) {
+ getMail().remove( mail );
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/pagination/DataPoint.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,62 @@
+//$Id: DataPoint.java 7867 2005-08-11 23:35:33Z oneovthafew $
+package mapping.pagination;
+
+import java.math.BigDecimal;
+
+/**
+ * @author Gavin King
+ */
+public class DataPoint {
+ private long id;
+ private BigDecimal x;
+ private BigDecimal y;
+ private String description;
+ /**
+ * @return Returns the description.
+ */
+ public String getDescription() {
+ return description;
+ }
+ /**
+ * @param description The description to set.
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+ /**
+ * @return Returns the id.
+ */
+ public long getId() {
+ return id;
+ }
+ /**
+ * @param id The id to set.
+ */
+ public void setId(long id) {
+ this.id = id;
+ }
+ /**
+ * @return Returns the x.
+ */
+ public BigDecimal getX() {
+ return x;
+ }
+ /**
+ * @param x The x to set.
+ */
+ public void setX(BigDecimal x) {
+ this.x = x;
+ }
+ /**
+ * @return Returns the y.
+ */
+ public BigDecimal getY() {
+ return y;
+ }
+ /**
+ * @param y The y to set.
+ */
+ public void setY(BigDecimal y) {
+ this.y = y;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Account.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Account.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Account.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,48 @@
+//$Id: Account.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.basic;
+
+/**
+ * @author Gavin King
+ */
+public class Account {
+ private String accountId;
+ private Person user;
+ private char type;
+ /**
+ * @return Returns the user.
+ */
+ public Person getUser() {
+ return user;
+ }
+ /**
+ * @param user The user to set.
+ */
+ public void setUser(Person user) {
+ this.user = user;
+ }
+ /**
+ * @return Returns the accountId.
+ */
+ public String getAccountId() {
+ return accountId;
+ }
+ /**
+ * @param accountId The accountId to set.
+ */
+ public void setAccountId(String accountId) {
+ this.accountId = accountId;
+ }
+ /**
+ * @return Returns the type.
+ */
+ public char getType() {
+ return type;
+ }
+ /**
+ * @param type The type to set.
+ */
+ public void setType(char type) {
+ this.type = type;
+ }
+
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Address.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Address.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Address.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,73 @@
+//$Id: Address.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.basic;
+
+/**
+ * @author gavin
+ */
+public class Address {
+ private Long id;
+ private String address;
+ private String zip;
+ private String country;
+ private Person person;
+ /**
+ * @return Returns the id.
+ */
+ public Long getId() {
+ return id;
+ }
+ /**
+ * @param id The id to set.
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+ /**
+ * @return Returns the person.
+ */
+ public Person getPerson() {
+ return person;
+ }
+ /**
+ * @param person The person to set.
+ */
+ public void setPerson(Person person) {
+ this.person = person;
+ }
+ /**
+ * @return Returns the address.
+ */
+ public String getAddress() {
+ return address;
+ }
+ /**
+ * @param address The address to set.
+ */
+ public void setAddress(String address) {
+ this.address = address;
+ }
+ /**
+ * @return Returns the country.
+ */
+ public String getCountry() {
+ return country;
+ }
+ /**
+ * @param country The country to set.
+ */
+ public void setCountry(String country) {
+ this.country = country;
+ }
+ /**
+ * @return Returns the zip.
+ */
+ public String getZip() {
+ return zip;
+ }
+ /**
+ * @param zip The zip to set.
+ */
+ public void setZip(String zip) {
+ this.zip = zip;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Group.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Group.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Group.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,23 @@
+//$Id: Group.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.basic;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Group {
+ private String name;
+ private Set users = new HashSet();
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public Set getUsers() {
+ return users;
+ }
+ public void setUsers(Set users) {
+ this.users = users;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/basic/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,88 @@
+//$Id: Person.java 10949 2006-12-07 21:53:41Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.basic;
+
+import java.util.HashSet;
+import java.util.Set;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ * @author gavin
+ */
+public class Person {
+ private Long id;
+ private String name;
+ private Address address;
+ private String userId;
+ private Set accounts = new HashSet();
+ private List systems = new ArrayList();
+
+ /**
+ * @return Returns the userId.
+ */
+ public String getUserId() {
+ return userId;
+ }
+ /**
+ * @param userId The userId to set.
+ */
+ public void setUserId(String userId) {
+ this.userId = userId;
+ }
+ /**
+ * @return Returns the address.
+ */
+ public Address getAddress() {
+ return address;
+ }
+ /**
+ * @param address The address to set.
+ */
+ public void setAddress(Address address) {
+ this.address = address;
+ }
+ /**
+ * @return Returns the id.
+ */
+ public Long getId() {
+ return id;
+ }
+ /**
+ * @param id The id to set.
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+ /**
+ * @return Returns the name.
+ */
+ public String getName() {
+ return name;
+ }
+ /**
+ * @param name The name to set.
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+ /**
+ * @return Returns the accounts.
+ */
+ public Set getAccounts() {
+ return accounts;
+ }
+ /**
+ * @param accounts The accounts to set.
+ */
+ public void setAccounts(Set accounts) {
+ this.accounts = accounts;
+ }
+
+ public List getSystems() {
+ return systems;
+ }
+
+ public void setSystems(List systems) {
+ this.systems = systems;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Account.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Account.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Account.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,23 @@
+package mapping.propertyref.component.complete;
+
+
+public class Account {
+ private String number;
+ private Person owner;
+
+ public Person getOwner() {
+ return owner;
+ }
+
+ public void setOwner(Person owner) {
+ this.owner = owner;
+ }
+
+ public String getNumber() {
+ return number;
+ }
+
+ public void setNumber(String number) {
+ this.number = number;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Identity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Identity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Identity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,21 @@
+package mapping.propertyref.component.complete;
+
+import java.io.Serializable;
+
+public class Identity implements Serializable {
+ private String name;
+ private String ssn;
+
+ public String getSsn() {
+ return ssn;
+ }
+ public void setSsn(String id) {
+ this.ssn = id;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/complete/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,20 @@
+package mapping.propertyref.component.complete;
+
+
+public class Person {
+ private Long id;
+ private Identity identity;
+
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+ public Identity getIdentity() {
+ return identity;
+ }
+ public void setIdentity(Identity identity) {
+ this.identity = identity;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Account.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Account.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Account.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,23 @@
+//$Id: Account.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.component.partial;
+
+public class Account {
+ private String number;
+ private Person owner;
+
+ public Person getOwner() {
+ return owner;
+ }
+
+ public void setOwner(Person owner) {
+ this.owner = owner;
+ }
+
+ public String getNumber() {
+ return number;
+ }
+
+ public void setNumber(String number) {
+ this.number = number;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Identity.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Identity.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Identity.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,20 @@
+//$Id: Identity.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.component.partial;
+
+public class Identity {
+ private String name;
+ private String ssn;
+
+ public String getSsn() {
+ return ssn;
+ }
+ public void setSsn(String id) {
+ this.ssn = id;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/component/partial/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,20 @@
+//$Id: Person.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.component.partial;
+
+public class Person {
+ private Long id;
+ private Identity identity;
+
+ public Long getId() {
+ return id;
+ }
+ public void setId(Long id) {
+ this.id = id;
+ }
+ public Identity getIdentity() {
+ return identity;
+ }
+ public void setIdentity(Identity identity) {
+ this.identity = identity;
+ }
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Account.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Account.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Account.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,57 @@
+//$Id: Account.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.inheritence.discrim;
+
+/**
+ * @author Gavin King
+ */
+public class Account {
+ private String accountId;
+ private Customer customer;
+ private Person person;
+ private char type;
+ /**
+ * @return Returns the user.
+ */
+ public Customer getCustomer() {
+ return customer;
+ }
+ /**
+ * @param user The user to set.
+ */
+ public void setCustomer(Customer user) {
+ this.customer = user;
+ }
+ /**
+ * @return Returns the accountId.
+ */
+ public String getAccountId() {
+ return accountId;
+ }
+ /**
+ * @param accountId The accountId to set.
+ */
+ public void setAccountId(String accountId) {
+ this.accountId = accountId;
+ }
+ /**
+ * @return Returns the type.
+ */
+ public char getType() {
+ return type;
+ }
+ /**
+ * @param type The type to set.
+ */
+ public void setType(char type) {
+ this.type = type;
+ }
+ public Person getPerson() {
+ return person;
+ }
+
+ public void setPerson(Person person) {
+ this.person = person;
+ }
+
+
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Customer.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Customer.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Customer.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,18 @@
+//$Id: Customer.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.inheritence.discrim;
+
+/**
+ * @author Gavin King
+ */
+public class Customer extends Person {
+ private String customerId;
+
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+
+}
Added: trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.java
===================================================================
--- trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.java (rev 0)
+++ trunk/hibernatetools/sampleprojects/org.jboss.tools.hibernate.sampleproject.mappingtypes/src/mapping/propertyref/inheritence/discrim/Person.java 2007-07-26 16:18:37 UTC (rev 2687)
@@ -0,0 +1,44 @@
+//$Id: Person.java 10921 2006-12-05 14:39:12Z steve.ebersole(a)jboss.com $
+package mapping.propertyref.inheritence.discrim;
+
+
+/**
+ * @author gavin
+ */
+public class Person {
+ private Long id;
+ private String name;
+ private String personId;
+ /**
+ * @return Returns the id.
+ */
+ public Long getId() {
+ return id;
+ }
+ /**
+ * @param id The id to set.
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+ /**
+ * @return Returns the name.
+ */
+ public String getName() {
+ return name;
+ }
+ /**
+ * @param name The name to set.
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getPersonId() {
+ return personId;
+ }
+
+ public void setPersonId(String personId) {
+ this.personId = personId;
+ }
+
+}
17 years, 5 months