`
louisling
  • 浏览: 143865 次
  • 性别: Icon_minigender_1
  • 来自: ZhuHai
社区版块
存档分类
最新评论
文章列表
Compile Flex source(.mxml) to SWF 1) Create project mvn archetype:create -DarchetypeArtifactId=maven-archetype-flex -DarchetypeVersion=1.0 -DarchetypeGroupId=dk.jacobve.maven.archetypes  -DgroupId=multiModuleProjectId -DartifactId=multiModuleProjectArtifactIdFlex -DpackageName=com.zero.demo.flex 2) ...
version: Jboss-4.2.0.GA 1. 配置 Queue 和 Topic 1) 在这个文件里面配置    jboss-4.2.0.GA\server\default\deploy\jms\jbossmq-destinations-service.xml    2) 或者在目录 jboss-4.2.0.GA\server\default\deploy\jms\ 下 建立单独的配置文件*-service.xml <?xml version="1.0" encoding="UTF-8"?> <server> ...

Singleton Sample(1)

    博客分类:
  • Java
public class Singleton { private static class SingletonHolder { static Singleton instance = new Singleton(); } public static Singleton getInstance() { return SingletonHolder.instance; } private Singleton() { } }
@MappedSuperclass @EntityListeners( { PersistenceObjectListener.class }) public abstract class AbstractPersistenceObject implements PersistenceObject { private Timestamp version; private String createdBy; private String updatedBy; @Column(name = "CREATED_BY", length ...
CREATE TABLE FATHER ( ID CHAR(32) NOT NULL, NAME CHAR(32) NOT NULL, PRIMARY KEY(id) ) CREATE TABLE SON ( ID CHAR(32) NOT NULL, NAME CHAR(32) NOT NULL, FATHER_ID CHAR(32) NOT NULL, PRIMARY KEY(id) ) ALTER TABLE SON ADD ...

One-To-Many in JPA

    博客分类:
  • JPA
1) @Entity @Table(name = "UT_PARENT") public class ParentObject { private int id; private String value; private Set<ChildObject> children; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID", precision = 19, scale = 0) ...
Create Eclipse project mvn eclipse:eclipse cd/d F:\downloads\spring-framework-2.5.6\dist\modules set SpringVersion=2.5.6 mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-core -Dversion=%SpringVersion% -Dpackaging=jar -Dfile=spring-core.jar mvn install:install-file -Dgro ...
1) Maven    http://m2eclipse.codehaus.org/    Update site: http://m2eclipse.sonatype.org/update/ 2) Subversion    http://subclipse.tigris.org/    Update site: http://subclipse.tigris.org/update_1.4.x
Create OSGi environment outside Eclipse. ------------------------------------------------------------------------------ 1) Create folder and files: C:\equinox │ run.bat │ ├─configuration │ config.ini │ └─plugins org.eclipse.osgi.services_3.1.200.v20070605.jar org.eclips ...
JavaScript 未结束的字符串常量 做JavaScript的时候,发现老是出现错误:“未结束的字符串常量”. 自己找了下应该是传参数的时候,有特殊字符引起的. 网上也找了下,也有好多出现这种情况.做下总结,以方便以后查阅. 1.JAVASCRIPT引用时,使用的字符语言不一致. 比如:<script type=”text/javascript” src=”xxx.js” charset=”UTF-8″>. xxx.js文件内部使用的是GB2312的格式,外面调用使用的是UTF-8,所以文件内部部分特殊字符因为格式不一致,出现乱码,造成此原因. 改为charset=&quo ...
Features:     modularity     dynamic,” Plug and Play”     extensionable     these features are supported by OSGI, the meaning is that you don’t need realize those features yourself, what you need do is just use it What is OSGi     Dynamic Module System For Java     JSR232, JSR291     Universal Middl ...

Site

软件DIY http://bbs.imseb.cn/forum-8-1.html http://www.javafaq.nu
在 Eclipse 3.4(Gandymede) 里面安装 Subclipse 时出错: Unable to load default SVN client. 解决办法: 安装时,选择下面2项: JavaHL Adapter Subclipse
用Spring 的 JmsTemplate 来接收消息时, 按照其文档: /* Default settings for JMS Sessions are "not transacted" and "auto-acknowledge". As defined by the J2EE specification, the transaction and acknowledgement parameters are ignored when a JMS Session is created inside ...
/** * Add a new Row when click on the blank row of the table */ void addNewRow(MouseEvent e, Table mTable) { TableItem item = mTable.getItem(new Point(e.x, e.y)); if (item == null) { if (mTable.getItemCount() == 0) { item = new TableItem(mTable, SWT.NONE); ...
Global site tag (gtag.js) - Google Analytics