This is from org.apache.openjpa.conf.OpenJPAVersion:
public static void main(String [] args) {
System.out.println(new OpenJPAVersion().toString());
}
If you want just the version numbers, you can access these public
static fields of the OpenJPAVersion class:
public static final String VERSION_NUMBER;
public static final String VERSION_ID;
public static final String VENDOR_NAME = "OpenJPA";
public static final int MAJOR_RELEASE;
public static final int MINOR_RELEASE;
public static final int PATCH_RELEASE;
public static final String RELEASE_STATUS;
public static final String REVISION_NUMBER;
Thanks,
Dinkar
On Fri, Mar 5, 2010 at 9:02 PM, C N Davies <[email protected]> wrote:
> Hi,
>
>
>
> I need to report the version of OpenJPA that is being used in software, it's
> very useful when supporting my products. I can't seem to find any function
> that will return the version of the implementation. Something like
>
>
>
> org.apache.openja.Version.getVersion()
>
> org.apache.openja.Version.getPatchVersion()
>
>
>
> Something like that. Is there any way to return this info?
>
>
>
> Thanks
>
>
>
> Chris
>
>
>
>
>
>
>
>