<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/thinkjava/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/thinkjava/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 30 Dec 2014 05:36:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/thinkjava/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/thinkjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;ThinkJava project is a small but smart and efficient ORM framwork.It is bases on jdk 1.6 or later.&lt;br /&gt;
You can create your project rapidly with very few codes and configuration.&lt;br /&gt;
I know the Hibernate,my batis framework and so on,I was using them to create my project in the latest years.They are very powerful but complex.I'm a lazy guy,I hate the complex framwork ^_^. You know,endless configuration, large numbers of classes,methods,elusive concepts, all of these are nightmares to a newer. Enen if to the senior developers,  there is so much to do for a project.&lt;/p&gt;
&lt;p&gt;ThinkJava is very simply,efficient and flexible ORM framework, it is very small even you can call it a "java database tools" -_-!.&lt;br /&gt;
for an example,here is the code to select the records from table User:&lt;br /&gt;
    Model m=new Model(User.class);//class "User" is a persistent class corresponding the table "User"&lt;br /&gt;
    List list=m.where("userId&amp;gt;3").orderBy("userName asc").list();&lt;br /&gt;
    m.destroy();&lt;/p&gt;
&lt;p&gt;When you are going to add a record to a table from the submited form  in a web project,the following code is an example:&lt;br /&gt;
    Model m=new Model(User.class,request);//class "User" is a persistent class corresponding the table "User",Parameter "request" is the HttpServletRequest from jsp.&lt;br /&gt;
    m.pubFormValues();&lt;br /&gt;
    m.add();&lt;br /&gt;
    m.destroy();&lt;/p&gt;
&lt;p&gt;There is no more code! so easy.&lt;/p&gt;
&lt;p&gt;ThinkJava include a quickly paged class using the database dialect,the following code is an example:&lt;br /&gt;
    Model m=new Model(User.class);//class "User"&lt;br /&gt;
    Page p=m.where("userId&amp;gt;3").orderBy(userName asc").page(url,pageSize,pageNum);&lt;br /&gt;
    List list=p.getList();&lt;br /&gt;
    String pageNavigator=p.getPageHTML();//return the page navigator like &lt;a href="../url?p=2"&gt;next page&lt;/a&gt;&lt;br /&gt;
    m.destroy();&lt;/p&gt;
&lt;p&gt;The transaction in ThinkJava bases on JDBC Transaction.There are three general methods,they are used very simply like:&lt;br /&gt;
    m.beginTransaction();&lt;br /&gt;
    m.commit();&lt;br /&gt;
    m.rollback();&lt;/p&gt;
&lt;p&gt;ThinkJava is good at dealing file uploading. You can see more in the test proect.&lt;/p&gt;
&lt;p&gt;ThinkJava is so flexible then You even can get a rowset result from a query:&lt;br /&gt;
    Model m=new Model(User.class);//class "User" is a persistent class corresponding the table "User"&lt;br /&gt;
    RowSet rs=m.where("userId&amp;gt;3").orderBy("userName asc").select();&lt;br /&gt;
    m.destroy();&lt;/p&gt;
&lt;p&gt;by rockydan 30/12/2014 &lt;br /&gt;
please mail to rockydan79@hotmail.com to help me improve.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rockydan</dc:creator><pubDate>Tue, 30 Dec 2014 05:36:30 -0000</pubDate><guid>https://sourceforge.net5190b83d646f4ab49f12c6c81ad759f402dd8ffb</guid></item><item><title>Home modified by rockydan</title><link>https://sourceforge.net/p/thinkjava/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/thinkjava/wiki/markdown_syntax"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/rockydan"&gt;rockydan&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-54a0fe42c4d1043f09614f8e" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rockydan</dc:creator><pubDate>Mon, 29 Dec 2014 07:09:54 -0000</pubDate><guid>https://sourceforge.netda1154349987338a050e834a33bdc94b7dde5c05</guid></item></channel></rss>