Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11407/src/test/java/org/xdoclet/plugin/hibernate

Added Files:
        CompositeTestCase.java 
Log Message:
(XDP-54) Implemented 'composite-element' support. Also added @hibernate.parent 
support

--- NEW FILE: CompositeTestCase.java ---
/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate;

import java.io.IOException;

import java.net.URL;

import org.generama.MetadataProvider;

import org.xdoclet.QDoxMetadataProvider;

/**
 * @author Anatol Pomozov
 */
public class CompositeTestCase extends AbstractHibernateMappingTestCase {
    protected String getApplicableVersion() {
        return HibernateVersion.HIBERNATE_3_0;
    }

    protected URL getExpected() throws IOException {
        return 
getResourceRelativeToThisPackage("pojo/CompositeMapping.hbm.xml");
    }

    protected MetadataProvider createMetadataProvider() throws IOException {
        URL reader = 
getResourceRelativeToThisPackage("pojo/CompositeMapping.java");
        return new QDoxMetadataProvider(reader);
    }
}


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to