-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright 2009-2018 the original author or authors. | ||
* <p> | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.ibatis.submitted.ancestor_ref; | ||
|
||
public interface Mapper { | ||
|
||
User getUserAssociation(Integer id); | ||
|
||
User getUserCollection(Integer id); | ||
|
||
Blog selectBlog(Integer id); | ||
|
||
} |
123 changes: 123 additions & 0 deletions
123
docs/spring/cs3a2e3366-581f-11ee-b2a6-acde48001122.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
package com.huifer.ssm.mapper; | ||
|
||
import com.huifer.ssm.pojo.User; | ||
import com.huifer.ssm.pojo.UserExample; | ||
import com.huifer.ssm.pojo.UserKey; | ||
import com.huifer.ssm.pojo.UserWithBLOBs; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
import java.util.List; | ||
|
||
public interface UserMapper { | ||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
long countByExample(UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int deleteByExample(UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int deleteByPrimaryKey(UserKey key); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int insert(UserWithBLOBs record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int insertSelective(UserWithBLOBs record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
List<UserWithBLOBs> selectByExampleWithBLOBs(UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
List<User> selectByExample(UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
UserWithBLOBs selectByPrimaryKey(UserKey key); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByExampleSelective(@Param("record") UserWithBLOBs record, @Param("example") UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByExampleWithBLOBs(@Param("record") UserWithBLOBs record, @Param("example") UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByExample(@Param("record") User record, @Param("example") UserExample example); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByPrimaryKeySelective(UserWithBLOBs record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByPrimaryKeyWithBLOBs(UserWithBLOBs record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table user | ||
* | ||
* @mbg.generated | ||
*/ | ||
int updateByPrimaryKey(User record); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.huifer.activermq.receiver; | ||
|
||
import org.apache.activemq.ActiveMQConnectionFactory; | ||
|
||
import javax.jms.*; | ||
|
||
/** | ||
* <p>Title : JMSQueueReceiver </p> | ||
* <p>Description : </p> | ||
* | ||
* @author huifer | ||
* @date 2019-06-17 | ||
*/ | ||
public class JMSQueueReceiver { | ||
|
||
public static void main(String[] args) throws JMSException { | ||
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory( | ||
"tcp://192.168.1.108:61616"); | ||
Connection connection = connectionFactory.createConnection(); | ||
connection.start(); | ||
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE); | ||
Queue testQueue = session.createQueue("testQueue"); | ||
MessageConsumer consumer = session.createConsumer(testQueue); | ||
TextMessage msg = (TextMessage) consumer.receive(); | ||
System.out.println(msg.getText()); | ||
|
||
session.commit(); | ||
session.close(); | ||
|
||
} | ||
} |