keyword: Live Templates XDoclet
在IDEA中要写hibernate标签想不想用自动提示功能? :)
Come on!
- 进入 这里
- 把hibernate.xml文本拷到本机
- 把hibernate.xml copy 到IDEA的config/templates目录下
- 重启IDEA
- 进入IDEA的设置里的Erros,找到Unknown javadoc tags,把以下代码copy进来
hibernate.class,hibernate.discriminator,hibernate.subclass, hibernate.query,hibernate.property,hibernate.component, hibernate.id,hibernate.version,,hibernate.timestamp, hibernate.many-to-one,hibernate.one-to-one,hibernate.set, hibernate.bag,hibernate.list,hibernate.map,hibernate.array, hibernate.primitive-array,hibernate.collection-key, hibernate.collection-index,hibernate.collection-element, hibernate.composite-element,hibernate.collection-many-to-many, hibernate.collection-one-to-many
happy吧 :)