All Projects → eyougo → mybatis-typehandlers-postgis

eyougo / mybatis-typehandlers-postgis

Licence: WTFPL license
MyBatis Type Handlers for PostGIS

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to mybatis-typehandlers-postgis

lightbatis
Lightbatis 增强 MyBatis 版Java 数据库持久层,更简洁并易用
Stars: ✭ 52 (-10.34%)
Mutual labels:  mybatis, mybatis3
mybatis-helper
Mybatis plugins package
Stars: ✭ 13 (-77.59%)
Mutual labels:  mybatis, mybatis3
anyangdp-frame
基于mybatis,springboot,tk.mybatis等框架二次开发,实现crud,controller,service,dao。
Stars: ✭ 16 (-72.41%)
Mutual labels:  mybatis, mybatis3
sqlt
SqlT golang实现的类似MyBaits的Sql 工具
Stars: ✭ 28 (-51.72%)
Mutual labels:  mybatis, mybatis3
mybatis-mapper
generate SQL statements from the MyBatis3 Mapper XML file in Node.js
Stars: ✭ 64 (+10.34%)
Mutual labels:  mybatis, mybatis3
itstack-naive-chat-server
💞 《服务端》| 服务端同样使用Netty4.x作为socket的通信框架,同时在服务端使用Layui作为管理后台的页面,并且我们的服务端采用偏向于DDD领域驱动设计的方式与Netty集合,以此来达到我们的框架结构整洁干净易于扩展。同时我们的通信协议也是在服务端进行定义的,并对外提供可引入的Jar包,这样来保证客户端与服务端共同协议下进行通信。
Stars: ✭ 21 (-63.79%)
Mutual labels:  mybatis
kite-mybatis-builder
web 形式的mybatis 生成器
Stars: ✭ 58 (+0%)
Mutual labels:  mybatis
SSM Project
这个一个SSM+shiro+maven+bootstrap的项目实战,经典的图书管理系统。
Stars: ✭ 30 (-48.28%)
Mutual labels:  mybatis
Goku.Framework.CoreUI
基于 SpringBoot + Spring + SpringMvc+Mybatis+CoreUI +Layui 开发后台管理程序
Stars: ✭ 87 (+50%)
Mutual labels:  mybatis
www.renfei.net
任霏的个人网站与博客,基于SpringBoot开发,包含博客、相册、视频、工具箱等栏目,这个项目也是我的实验室,各种新奇的技术将在这里尝试。 https://www.renfei.net
Stars: ✭ 13 (-77.59%)
Mutual labels:  mybatis
my-blog-project
这个项目只是我自己练手的,链接地址是基于该项目的docker版本,感谢!
Stars: ✭ 13 (-77.59%)
Mutual labels:  mybatis
SSMBlogv2
基于 Spring + Springmvc + Mybatis + Bootstrap + w3.css + ajax 的个人响应式博客
Stars: ✭ 26 (-55.17%)
Mutual labels:  mybatis
qa
😚 Q & A website based on Spring Boot.
Stars: ✭ 46 (-20.69%)
Mutual labels:  mybatis
sinosteel
Spring Boot + React/Node.js based framework for web application development
Stars: ✭ 32 (-44.83%)
Mutual labels:  mybatis
NBlog
🍓 Spring Boot + Vue 前后端分离博客系统 https://naccl.top
Stars: ✭ 700 (+1106.9%)
Mutual labels:  mybatis
gsky
Distributed Scalable Geospatial Data Server
Stars: ✭ 23 (-60.34%)
Mutual labels:  postgis
pgosm
The goal of PgOSM is to make it simpler to consume OpenStreetMap data loaded from PBF file into PostGIS via osm2pgsql.
Stars: ✭ 16 (-72.41%)
Mutual labels:  postgis
shik
shik项目基于springcloud微服务搭建的分布式项目。搭建了shik-config云公共配置,通过shik-RA服务注册发现各个模块,通过shik-zuul路由转发与统一接口。并整合了包括mybatis,jpa,jedis,quartz,freemarker和layui等多个模块,支持spring-session二级域名共享session,使用了RESTful方式提供api接口
Stars: ✭ 89 (+53.45%)
Mutual labels:  mybatis
crowd-admin
crowd-admin是一个基于Spring,Shiro,Redis/ehcache,Mybatis的通用后台权限管理系统,这里推荐本人另一个基于sprinboot的单点登录系统
Stars: ✭ 51 (-12.07%)
Mutual labels:  mybatis
mybatis-generator
MyBatis code generator
Stars: ✭ 25 (-56.9%)
Mutual labels:  mybatis

MyBatis Type Handlers for PostGIS

Build Status Maven central

The MyBatis type handlers supporting geometry types introduced in PostGIS: JDBC Geometry API

Requirements

Java 7 or higher.

The latest PostGIS JDBC API which it depends on was using the JRE7 version of PostgreSQL JDBC, so it requires Java 7 or higher.

Installation

If you are using Maven add the following dependency to your pom.xml:

<dependency>
    <groupId>com.eyougo</groupId>
    <artifactId>mybatis-typehandlers-postgis</artifactId>
    <version>1.0</version>
</dependency>

Configuration

  • If you are using MyBatis alone, add the type handlers to your mybatis-config.xml as follow:
<typeHandlers>
    <!-- ... -->
    <typeHandler handler="com.eyougo.mybatis.postgis.type.PointTypeHandler" />
    <typeHandler handler="com.eyougo.mybatis.postgis.type.PolygonTypeHandler" />
</typeHandlers>
  • If you are using MyBatis with Spring, add the type handlers package to the Spring configuration as follow:

With XML Configuration

<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
    <!-- ... -->
    <property name="typeAliasesPackage" value="com.eyougo.mybatis.postgis.type" />
</bean>

Or with Java configuration

@Bean
public SqlSessionFactory sqlSessionFactory(Configuration config) {
    SqlSessionFactoryBean factory = new SqlSessionFactoryBean();
    // ...
    factory.setTypeHandlersPackage("com.eyougo.mybatis.postgis.type");
    return factory.getObject();
}
  • If you are using MyBatis with Spring Boot, add the type handlers package to the configuration file as follow:

application.properties

mybatis.type-handlers-package = com.eyougo.mybatis.postgis.type

Or application.yml

mybatis:
    type-handlers-package: com.eyougo.mybatis.postgis.type

Supported types

The following type handlers are supported:

Type handler PostGIS Geometry API type Available version
PointTypeHandler org.postgis.Point 1.0
PolygonTypeHandler org.postgis.Polygon 1.0
LineStringTypeHandler org.postgis.LineString 1.0
MultiPointTypeHandler org.postgis.MultiPoint 1.0

Note: For more details of type handler, please refer to "MyBatis 3 REFERENCE DOCUMENTATION".

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].