This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.hibernate.boot.MetadataBuilder; | |
| import org.hibernate.boot.spi.MetadataBuilderContributor; | |
| import org.hibernate.dialect.function.SQLFunctionTemplate; | |
| import org.hibernate.type.StandardBasicTypes; | |
| /** | |
| * Enable with Spring Boot: | |
| * spring: | |
| * jpa: | |
| * properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- DataNucleus JPA Persistence Provider --> | |
| <provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider> | |
| <properties> | |
| <!-- TODO property --> | |
| <property name="datanucleus.ConnectionURL" value="mongodb:/biorelay"/> | |
| <property name="datanucleus.storeManagerType" value="mongodb"/> | |
| <property name="datanucleus.autoCreateSchema" value="true"/> | |
| <property name="datanucleus.validateTables" value="false"/> | |
| </properties> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/context | |
| http://www.springframework.org/schema/context/spring-context.xsd | |
| http://www.springframework.org/schema/tx | |
| http://www.springframework.org/schema/tx/spring-tx.xsd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (i = 0; i < results[r].address_components.length; i++) { | |
| var type = results[r].address_components[i].types[0]; | |
| if (type == 'locality') { | |
| $option.attr("value", r); | |
| formatted[r].city = results[r].address_components[i].long_name; | |
| } else if (type == 'route') { | |
| $option.attr("value", r); | |
| formatted[r].street = results[r].address_components[i].long_name; | |
| } else if (type == 'postal_code') { | |
| $option.attr("value", r); |