Wednesday, July 28, 2010

Eclipse key board short cuts

CTRL + D --> Delete row

ALT + Up/Down Arrow --> Move the row (or the entire selection) up or down.

ALT + Left/Right Arrow --> Move to the last location you edited.

CTRL+SHIFT+O --> Organize imports.

CTRL+1 --> Probably the most useful one. It activates the quick fix.

CTRL+SHIFT+T --> Open popup to search a perticular Type in project.

CTRL+E --> Shows you a list of all open editors.

CTRL+F6 --> Use to move between open editors.

CTRL+F7 --> Move between views.

CTRL+F8 --> Move between perspectives.

CTRL + F11 --> Runs the application.

CTL + N --> Open new type wizard.

CTRL + M --> Maximize or umaximize current tab.

CTRL + I --> Corrects indentation.

CTRL + J --> Incremental search.

CTRL + SHIFT + L --> Shows you a list of your currently defined shortcut keys.

CTRL+SHIFT+G --> Bind this to "Generate getters and setters". This is a "must have".

ALT+C --> Bind this to SVN/CVS "Commit".

ALT+U --> Bind this to SVN/CVS "Update".

iBatis int(1) to boolean map

In SELECT statement:

SELECT
DECODE(VALUE,'Y',1,'y',1,0) AS value
FROM XYZ_TABLE

In result map:
result property="value" column="value" jdbcType="BOOLEAN" javaType="java.lang.Boolean"