Coder Social home page Coder Social logo

igsn30's Introduction

IGSN

IGSN

Pre-requisite Java 8 tomcat 8 Maven 3.X

Open the portal as a project in Eclipse Select File->Import On the Import window select: Maven -> Existing Maven Projects

Once the import has completed - update/clean/build right click on project->Maven->update project Project Clean + build

make sure your eclipse is running on java 8 as well. For more tips and tricks visit https://twiki.auscope.org/wiki/Grid/AuscopePortalDevelopmentEnvironmentSetUp26022010

include src/main/resources/config.properties with the following information:

ldap.password=xxxxx
ldap.url=ldap://pool.ldap.example.au:123
ldap.userdn=CN=sa-xxxxx,OU=ffffffff,OU=Special Accounts,DC=eeeee,DC=jjjjjo,DC=au

IGSN_REGISTRY_URL=https\://doidb.wdc-terra.org/igsn/
IGSN_CSIRO_XSD_URL=https://igsn.csiro.au/schemas/2.0/igsn-csiro-v2.0.xsd
IGSN_PREFIX=12334/
IGSN_REGISTRY_USER=username
IGSN_REGISTRY_PASSWORD=password
IGSN_HANDLE_PREFIX=http://hdl.handle.net/12334/

OAI_BASEURL_VALUE=http://igsn.csiro.au/oai
OAI_CSIRO_IDENTIFIER_PREFIX=igsn:csiro:au:
OAI_REPO_NAME = CSIRO igsn repository
OAI_ADMIN_EMAIL = [email protected]
```

include  src/main/resources/hibernate.cfg.xml for development
```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
		"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
		
<!-- I kept this configuration file for Hibernate-tools in eclipse plugin. However for runtime, persistence.xml should be sufficient -->		
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
        <property name="hibernate.connection.password">*****</property>
        <property name="hibernate.connection.url">jdbc:postgresql://xxx.example.com:8888/xxxx</property>
        <property name="hibernate.connection.username">xxx</property>
        <property name="hibernate.default_schema">xxxx</property>       
    </session-factory>
</hibernate-configuration>
```

include src/main/resources/META-INF/persistence.xml 
```
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
        version="2.0">
    <persistence-unit name="org.hibernate.igsn.jpa" transaction-type="RESOURCE_LOCAL">
       <properties>
           <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>

           <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
           <property name="hibernate.connection.url" value="jdbc:postgresql://xxx.example:8888/xxxx"/>
           <property name="hibernate.connection.username" value="xxxx"/>
           <property name="hibernate.connection.password" value="xxxx"/>
           <property name="hibernate.default_schema" value="xxxx"/>   
           <property name="hibernate.connection.pool_size" value="5"/>

           <property name="hibernate.show_sql" value="true"/>
           <property name="hibernate.format_sql" value="true"/>

           <property name="hibernate.max_fetch_depth" value="5"/>

			<!-- setting this to update/validate may be useful in the future which will update db schema based on annotations-->
           <property name="hibernate.hbm2ddl.auto" value="update"/>  
           																

       </properties>
    </persistence-unit>
</persistence>
```

igsn30's People

Watchers

James Cloos avatar Victor avatar

Forkers

jdlcentre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.